Call of Duty Script Documentation
distancesquared(<point1>, <point2>)
ModuleVector
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);
Minimum Number of arguments: 2
1 : <point1> The first point
2 : <point2> The second point
Number of optional arguments: 0
Return to Function List