SGCoord2D Methods

The methods of the SGCoord2D class are listed here. For a complete list of SGCoord2D class members, see SGCoord2Dclass.

Name

Description

move Method

Moves a 2D coordinate the specified distance and direction.

moveToward Method

Moves a 2D coordinate the specified distance towards another coordinate.

lerp Method

Moves a 2D coordinate the specified percentage towards another coordinate.

distanceTo Method

Measures the distance between two coordinates.

anglesTo Method

Measures the angles (yaw and pitch) between two coordinates.

isEqual Method

Compare the properties values of this SGCoord2D object to another SGCoord2D object.