Added Quaternion::(Make)RotationBetween

Former-commit-id: e28517580bd17970e77a38f54e7c114cdaf402d5
This commit is contained in:
Lynix
2013-05-13 12:52:39 +02:00
parent 16004fd41c
commit 6c743a89b9
2 changed files with 23 additions and 0 deletions

View File

@@ -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();