mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 19:34:36 +00:00
Add IDENTITY constants for quat and simdQuat
- Why the hell am I not studying for the test I have tomorrow
This commit is contained in:
parent
57e6ea071d
commit
5eb7ad5d47
@ -78,6 +78,7 @@ namespace glm
|
|||||||
|
|
||||||
# ifdef GLM_STATIC_CONST_MEMBERS
|
# ifdef GLM_STATIC_CONST_MEMBERS
|
||||||
static const type ZERO;
|
static const type ZERO;
|
||||||
|
static const type IDENTITY;
|
||||||
static const type X;
|
static const type X;
|
||||||
static const type Y;
|
static const type Y;
|
||||||
static const type Z;
|
static const type Z;
|
||||||
|
@ -54,6 +54,8 @@ namespace detail
|
|||||||
const tquat<T, P> tquat<T, P>::ZERO
|
const tquat<T, P> tquat<T, P>::ZERO
|
||||||
(static_cast<T>(0), static_cast<T>(0), static_cast<T>(0), static_cast<T>(0));
|
(static_cast<T>(0), static_cast<T>(0), static_cast<T>(0), static_cast<T>(0));
|
||||||
|
|
||||||
|
template <typename T, precision P> const tquat<T, P> tquat<T, P>::IDENTITY;
|
||||||
|
|
||||||
template <typename T, precision P>
|
template <typename T, precision P>
|
||||||
const tquat<T, P> tquat<T, P>::X
|
const tquat<T, P> tquat<T, P>::X
|
||||||
(static_cast<T>(0), static_cast<T>(1), static_cast<T>(0), static_cast<T>(0));
|
(static_cast<T>(0), static_cast<T>(1), static_cast<T>(0), static_cast<T>(0));
|
||||||
|
@ -93,6 +93,7 @@ namespace detail
|
|||||||
|
|
||||||
# ifdef GLM_STATIC_CONST_MEMBERS
|
# ifdef GLM_STATIC_CONST_MEMBERS
|
||||||
static const type ZERO;
|
static const type ZERO;
|
||||||
|
static const type IDENTITY;
|
||||||
static const type X;
|
static const type X;
|
||||||
static const type Y;
|
static const type Y;
|
||||||
static const type Z;
|
static const type Z;
|
||||||
|
@ -53,6 +53,7 @@ void print(const fvec4SIMD &v)
|
|||||||
|
|
||||||
# ifdef GLM_STATIC_CONST_MEMBERS
|
# ifdef GLM_STATIC_CONST_MEMBERS
|
||||||
const fquatSIMD fquatSIMD::ZERO(0, 0, 0, 0);
|
const fquatSIMD fquatSIMD::ZERO(0, 0, 0, 0);
|
||||||
|
const fquatSIMD fquatSIMD::IDENTITY(1, 0, 0, 0);
|
||||||
const fquatSIMD fquatSIMD::X(0, 1, 0, 0);
|
const fquatSIMD fquatSIMD::X(0, 1, 0, 0);
|
||||||
const fquatSIMD fquatSIMD::Y(0, 0, 1, 0);
|
const fquatSIMD fquatSIMD::Y(0, 0, 1, 0);
|
||||||
const fquatSIMD fquatSIMD::Z(0, 0, 0, 1);
|
const fquatSIMD fquatSIMD::Z(0, 0, 0, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user