LengthSquared( <vector> )


Module: Vector

Summary:

Returns the squared vector length for the given vector - this is cheaper than the actual vector length as it doesn't involve a square root



Example:

dist2 = LengthSquared( models[j].origin - center );



Required Args:

  • 1 : <vector> A vector