fixed missing vec3/vec4 constructors

This commit is contained in:
Noel Berry 2022-01-09 13:50:50 -08:00
parent 2893680ef8
commit 168424039c

View File

@ -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)