This commit is contained in:
Бранимир Караџић
2019-02-04 21:39:12 -08:00
parent e90ab6cb4a
commit 636871aa2f
2 changed files with 27 additions and 0 deletions

View File

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

View File

@@ -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;
};