Skip to content

Commit

Permalink
Merge pull request #310 from plagakit/master
Browse files Browse the repository at this point in the history
Add LengthSqr method to Vector3
  • Loading branch information
RobLoach authored Mar 21, 2024
2 parents c589702 + 775616b commit 03cf2f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/Vector3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 03cf2f9

Please sign in to comment.