Garry's Mod Wiki

Revision Difference

Vector:LengthSqr#517979

<function name="LengthSqr" parent="Vector" type="classfunc"> <description> Returns the squared length of the vector, x&amp;sup2; + y&amp;sup2; + z&amp;sup2;. Returns the squared length of the vector, x&sup2; + y&sup2; + z&sup2;. This is faster than <page>Vector:Length</page> as calculating the square root is an expensive process. </description> <realm>Shared</realm> <rets> <ret name="" type="number">Squared length of the vector</ret> </rets> </function>