Base: [skip ci] add method to check for null vector
This commit is contained in:
@@ -416,6 +416,13 @@ Vector3<_Precision> & Vector3<_Precision>::Normalize (void)
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <class _Precision>
|
||||
bool Vector3<_Precision>::IsNull() const
|
||||
{
|
||||
_Precision n{0.0};
|
||||
return (x == n) && (y == n) && (z == n);
|
||||
}
|
||||
|
||||
template <class _Precision>
|
||||
_Precision Vector3<_Precision>::GetAngle (const Vector3 &rcVect) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user