Added Quaternion::(Make)RotationBetween
Former-commit-id: e28517580bd17970e77a38f54e7c114cdaf402d5
This commit is contained in:
@@ -37,6 +37,7 @@ template<typename T> class NzQuaternion
|
||||
NzQuaternion& Inverse();
|
||||
|
||||
NzQuaternion& MakeIdentity();
|
||||
NzQuaternion& MakeRotationBetween(const NzVector3<T>& from, const NzVector3<T>& to);
|
||||
NzQuaternion& MakeZero();
|
||||
|
||||
T Magnitude() const;
|
||||
@@ -75,6 +76,7 @@ template<typename T> class NzQuaternion
|
||||
|
||||
static NzQuaternion Identity();
|
||||
static NzQuaternion Lerp(const NzQuaternion& from, const NzQuaternion& to, T interpolation);
|
||||
static NzQuaternion RotationBetween(const NzVector3<T>& from, const NzVector3<T>& to);
|
||||
static NzQuaternion Slerp(const NzQuaternion& from, const NzQuaternion& to, T interpolation);
|
||||
static NzQuaternion Zero();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user