mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 18:07:14 +01:00
Add IDENTITY helper to the quaternion.
This commit is contained in:
parent
9c4198770d
commit
9fcbf54893
@ -12,9 +12,10 @@
|
||||
namespace SqMod {
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
const Quaternion Quaternion::NIL = Quaternion(0);
|
||||
const Quaternion Quaternion::MIN = Quaternion(std::numeric_limits< Quaternion::Value >::min());
|
||||
const Quaternion Quaternion::MAX = Quaternion(std::numeric_limits< Quaternion::Value >::max());
|
||||
const Quaternion Quaternion::NIL(0);
|
||||
const Quaternion Quaternion::MIN(std::numeric_limits< Quaternion::Value >::min());
|
||||
const Quaternion Quaternion::MAX(std::numeric_limits< Quaternion::Value >::max());
|
||||
const Quaternion Quaternion::IDENTITY(1.0, 0.0, 0.0, 0.0);
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQChar Quaternion::Delim = ',';
|
||||
|
@ -23,6 +23,7 @@ struct Quaternion
|
||||
static const Quaternion NIL;
|
||||
static const Quaternion MIN;
|
||||
static const Quaternion MAX;
|
||||
static const Quaternion IDENTITY;
|
||||
|
||||
/* --------------------------------------------------------------------------------------------
|
||||
* The delimiter character to be used when extracting values from strings.
|
||||
|
Loading…
x
Reference in New Issue
Block a user