Show 

Home > Working with SGWorld > CoordServices (ICoordServices66) > GetAimingAngles

GetAimingAngles

This method returns the calculated angle between two specified 3D-coordinates.

 

JavaScript

 

GetAimingAngles(

       From, To)

 

C#

 

IPosition66 GetAimingAngles(

       IPosition66   From,

       IPosition66   To)

 

C++

 

HRESULT GetAimingAngles(

        IPosition66 * From,

        IPosition66 * To,

        IPosition66 ** pVal )

Parameters

From

An IPosition66 representing the position of the first coordinate on the terrain.

To

An IPosition66 representing the position of the second coordinate on the terrain.

Return Value

pVal

An IPosition66 representing the position and orientation of the calculated angle.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.