distanceTo Method

Measures the distance between two coordinates.

distanceTo(coord);

 

Parameter

Description

coord

Can be  SGCoord2D, SGCoord3Dor SGPosition

Return Value

The distance between the two coordinates.