Merge branch 'halffixes' of https://github.com/Withaust/FlaxEngine into Withaust-halffixes
This commit is contained in:
@@ -15,6 +15,8 @@ const Float2 Float2::Zero(0.0f);
|
||||
template<>
|
||||
const Float2 Float2::One(1.0f);
|
||||
template<>
|
||||
const Float2 Float2::Half(0.5f);
|
||||
template<>
|
||||
const Float2 Float2::UnitX(1.0f, 0.0f);
|
||||
template<>
|
||||
const Float2 Float2::UnitY(0.0f, 1.0f);
|
||||
|
||||
@@ -44,6 +44,9 @@ public:
|
||||
// Vector with all components equal 1
|
||||
static FLAXENGINE_API const Vector2Base<T> One;
|
||||
|
||||
// Vector with all components equal 0.5
|
||||
static FLAXENGINE_API const Vector2Base<T> Half;
|
||||
|
||||
// Vector X=1, Y=0
|
||||
static FLAXENGINE_API const Vector2Base<T> UnitX;
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ const Float4 Float4::Zero(0.0f);
|
||||
template<>
|
||||
const Float4 Float4::One(1.0f);
|
||||
template<>
|
||||
const Float4 Float4::Half(0.5f);
|
||||
template<>
|
||||
const Float4 Float4::UnitX(1.0f, 0.0f, 0.0f, 0.0f);
|
||||
template<>
|
||||
const Float4 Float4::UnitY(0.0f, 1.0f, 0.0f, 0.0f);
|
||||
|
||||
@@ -54,6 +54,9 @@ public:
|
||||
// Vector with all components equal 1
|
||||
static FLAXENGINE_API const Vector4Base<T> One;
|
||||
|
||||
// Vector with all components equal 0.5
|
||||
static FLAXENGINE_API const Vector4Base<T> Half;
|
||||
|
||||
// Vector X=1, Y=0, Z=0, W=0
|
||||
static FLAXENGINE_API const Vector4Base<T> UnitX;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user