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:
@@ -31,10 +31,10 @@ template<typename T> class NzVector3
|
||||
|
||||
T DotProduct(const NzVector3& vec) const;
|
||||
|
||||
NzVector3 GetNormal() const;
|
||||
|
||||
T Length() const;
|
||||
float Lengthf() const;
|
||||
T GetLength() const;
|
||||
float GetLengthf() const;
|
||||
NzVector3 GetNormal(T* length = nullptr) const;
|
||||
T GetSquaredLength() const;
|
||||
|
||||
NzVector3& MakeForward();
|
||||
NzVector3& MakeLeft();
|
||||
@@ -57,7 +57,6 @@ template<typename T> class NzVector3
|
||||
template<typename U> NzVector3& Set(const NzVector3<U>& vec);
|
||||
|
||||
T SquaredDistance(const NzVector3& vec) const;
|
||||
T SquaredLength() const;
|
||||
|
||||
NzString ToString() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user