diff --git a/include/bx/inline/math.inl b/include/bx/inline/math.inl index 6d863ac..3d83668 100644 --- a/include/bx/inline/math.inl +++ b/include/bx/inline/math.inl @@ -361,6 +361,24 @@ namespace bx memCopy(_ptr, &_a, sizeof(Ty) ); } + inline Vec3::Vec3() + { + } + + constexpr Vec3::Vec3(float _v) + : x(_v) + , y(_v) + , z(_v) + { + } + + constexpr Vec3::Vec3(float _x, float _y, float _z) + : x(_x) + , y(_y) + , z(_z) + { + } + inline BX_CONSTEXPR_FUNC Vec3 round(const Vec3 _a) { return diff --git a/include/bx/math.h b/include/bx/math.h index 2bc6495..78b0360 100644 --- a/include/bx/math.h +++ b/include/bx/math.h @@ -53,6 +53,15 @@ namespace bx /// struct Vec3 { + /// + Vec3(); + + /// + constexpr Vec3(float _v); + + /// + constexpr Vec3(float _x, float _y, float _z); + float x, y, z; };