Added Quaternion spheric interpolation

Fixed NzVector(2/3)::Length() and NzQuaternion::Magnitude() returning
double instead of template type
Added quaternion dot product
Added gitignore
This commit is contained in:
Lynix
2012-06-13 17:54:07 +02:00
parent e2a38b3790
commit 0f84f8eda8
7 changed files with 254 additions and 49 deletions

View File

@@ -22,13 +22,13 @@ template<typename T> class NzVector3
T AbsDotProduct(const NzVector3& vec) const;
NzVector3 CrossProduct(const NzVector3& vec) const;
double Distance(const NzVector3& vec) const;
T Distance(const NzVector3& vec) const;
T DotProduct(const NzVector3& vec) const;
NzVector3 GetNormal() const;
void MakeCeil(const NzVector3& vec);
void MakeFloor(const NzVector3& vec);
double Length() const;
double Normalize();
T Length() const;
T Normalize();
T SquaredDistance(const NzVector3& vec) const;
T SquaredLength() const;