From 636871aa2fa542b1ff4f1e458fafccb9eee41b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 4 Feb 2019 21:39:12 -0800 Subject: [PATCH] Cleanup. --- include/bx/inline/math.inl | 18 ++++++++++++++++++ include/bx/math.h | 9 +++++++++ 2 files changed, 27 insertions(+) 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; };