Home > All Other Interfaces > IPosition > ToRelative
Returns an IPosition6 object that is converted to height relative to terrain (ATC_TERRAIN_RELATIVE).
| 
 JavaScript  | 
 
  | 
| 
 
 
  | 
|
| 
 C#  | 
 
  | 
| 
 
 
  | 
|
| 
 C++  | 
 
  | 
| 
 
 
 
  | 
|
Parameters
Accuracy
An enum that determines the accuracy level. The following are the possible values:
· ACCURACY_NORMAL = 0,
· ACCURACY_BEST_FROM_MEMORY = 1,
· ACCURACY_BEST_FROM_MPT = 2
Return Value
pVal
An IPosition6 object that has the same x and y coordinates as the caller’s but with altitude property converted to relative to terrain based on the caller x and y.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.