toRelative Method

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

toRelative();

Return Value

An SGPosition object that has the same x and y coordinates as the caller’s but with height property converted to relative to terrain based on the caller x and y.

Remarks

If the height type of the caller is already relative to terrain, no conversion is made.