Merge pull request #310 from plagakit/master

Add LengthSqr method to Vector3
This commit is contained in:
Rob Loach
2024-03-21 08:10:10 -04:00
committed by GitHub

View File

@@ -213,6 +213,13 @@ class Vector3 : public ::Vector3 {
return Vector3Length(*this);
}
/**
* Calculate vector square length
*/
float LengthSqr() const {
return Vector3LengthSqr(*this);
}
Vector3 Normalize() const {
return Vector3Normalize(*this);
}