diff --git a/include/blah/numerics/spatial.h b/include/blah/numerics/spatial.h index e9b6b8b..a5bfd8b 100644 --- a/include/blah/numerics/spatial.h +++ b/include/blah/numerics/spatial.h @@ -555,6 +555,10 @@ namespace Blah return Vec2(std::fmax(a.x, b.x), std::fmax(a.y, b.y)); } + template + constexpr Vec3::Vec3() + : x(0), y(0), z(0) {} + template template constexpr Vec3::Vec3(X x, Y y, Z z) @@ -598,6 +602,10 @@ namespace Blah a.x * b.y - a.y * b.x); } + template + constexpr Vec4::Vec4() + : x(0), y(0), z(0), w(0) {} + template template constexpr Vec4::Vec4(X x, Y y, Z z, W w)