Home > Working with SGWorld > CoordServices (ICoordServices6) > GetAimingAngles
This method returns the calculated angle between two specified 3D-coordinates.
JavaScript |
|
GetAimingAngles(From, To) |
C# |
|
IPosition6 GetAimingAngles( IPosition6 From, IPosition6 To) |
C++ |
|
HRESULT GetAimingAngles( IPosition6 * From, IPosition6 * To, IPosition6 ** pVal ) |
Parameters
From
An IPosition6 representing the position of the first coordinate on the terrain.
To
An IPosition6 representing the position of the second coordinate on the terrain.
Return Value
pVal
An IPosition6 representing the position and orientation of the calculated angle.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.