DistanceSquared( <point1>, <point2> )


Module: Vector

Summary:

Returns the squared distance between two points - this is cheaper than the actual distance as it doesn't involve a square root



Example:

dist2 = DistanceSquared( models[j].origin, center );



Required Args:

  • 1 : <point1> The first point
  • 2 : <point2> The second point