Base: [skip ci] add method to check for null vector

This commit is contained in:
wmayer
2021-10-19 19:19:31 +02:00
parent 277c5ef9e9
commit 057cce2538
2 changed files with 9 additions and 0 deletions

View File

@@ -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
{