mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-29 17:08:56 +08:00
fixed missing vec3/vec4 constructors
This commit is contained in:
parent
2893680ef8
commit
168424039c
|
@ -555,6 +555,10 @@ namespace Blah
|
||||||
return Vec2(std::fmax(a.x, b.x), std::fmax(a.y, b.y));
|
return Vec2(std::fmax(a.x, b.x), std::fmax(a.y, b.y));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
constexpr Vec3<T>::Vec3()
|
||||||
|
: x(0), y(0), z(0) {}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
template<class X, class Y, class Z>
|
template<class X, class Y, class Z>
|
||||||
constexpr Vec3<T>::Vec3(X x, Y y, Z z)
|
constexpr Vec3<T>::Vec3(X x, Y y, Z z)
|
||||||
|
@ -598,6 +602,10 @@ namespace Blah
|
||||||
a.x * b.y - a.y * b.x);
|
a.x * b.y - a.y * b.x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
constexpr Vec4<T>::Vec4()
|
||||||
|
: x(0), y(0), z(0), w(0) {}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
template<class X, class Y, class Z, class W>
|
template<class X, class Y, class Z, class W>
|
||||||
constexpr Vec4<T>::Vec4(X x, Y y, Z z, W w)
|
constexpr Vec4<T>::Vec4(X x, Y y, Z z, W w)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user