mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 17:19:27 +00:00
Merge pull request #310 from plagakit/master
Add LengthSqr method to Vector3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user