SGCoord3D Methods

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

Name

Description

move Method

Moves a 3D coordinate a specific distance.

moveToward Method

Moves a 3D coordinate, a given distance, toward another coordinate.

lerp Method

Moves a 3D coordinate a given percentage towards another coordinate.

distanceTo Method

Measures the distance between two coordinates.

anglesTo Method

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

aimTo Method

Returns an SGPosition object that represents the same position as the caller’s 3D coordinate and the angles that are directed toward the given coordinates.

toAbsolute Method

Returns an SGCoord3D object that is converted to absolute height.

toRelative Method

Returns an SGCoord3D object that is converted to height relative to terrain.

changeHeightType Method

Converts the height of the caller to a new height type based on the caller x and y.

isEqual Method

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