Personal tools

Lua/Shared/Vector3/Functions/LengthSqr

From JC2-MP Documentation

< Lua‎ | Shared‎ | Vector3
Jump to: navigation, search

Returns    number
Prototype    Vector3:LengthSqr()
Description    Returns the squared length of the vector.


Additional Notes

  • This function is faster than Vector:Length(), as no square root is required.