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:
@@ -67,6 +67,15 @@ T NzVector4<T>::DotProduct(const NzVector4& vec) const
|
||||
return x*vec.x + y*vec.y + z*vec.z + w*vec.w;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector4<T> NzVector4<T>::GetNormal(T* length) const
|
||||
{
|
||||
NzVector4<T> vec(*this);
|
||||
vec.Normalize(length);
|
||||
|
||||
return vec;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzVector4<T>& NzVector4<T>::MakeUnitX()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user