Renamed Vector[i]::[Squared]Length[f] to Get[*]

Also added length pointer parameter to Vector[i]::GetNormal


Former-commit-id: 345ebd14bda9f5e0a3843e7603eb7a1a39667db1
This commit is contained in:
Lynix
2013-02-21 11:29:35 +01:00
parent 2828ced694
commit a9b538de20
7 changed files with 56 additions and 47 deletions

View File

@@ -28,10 +28,10 @@ class NzVector2
T DotProduct(const NzVector2& vec) const;
NzVector2 GetNormal() const;
T Length() const;
float Lengthf() const;
T GetLength() const;
float GetLengthf() const;
NzVector2 GetNormal(T* length = nullptr) const;
T GetSquaredLength() const;
NzVector2& MakeUnitX();
NzVector2& MakeUnitY();
@@ -49,7 +49,6 @@ class NzVector2
template<typename U> NzVector2& Set(const NzVector2<U>& vec);
T SquaredDistance(const NzVector2& vec) const;
T SquaredLength() const;
NzString ToString() const;