Garry's Mod Wiki

Revision Difference

Vector:LengthSqr#512409

<function name="LengthSqr" parent="Vector" type="classfunc">⤶ <description>⤶ Returns the squared length of the vector, x&amp;sup2; + y&amp;sup2; + z&amp;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>⤶ ⤶