GetAimingAngles

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

 

JavaScript

 

GetAimingAngles(

       From, To)

 

C#

 

IPosition80 GetAimingAngles(

       IPosition80 From,

       IPosition80 To)

 

C++

 

HRESULT GetAimingAngles(

        IPosition80 * From,

        IPosition80 * To,

        IPosition80 ** pVal )

Parameters

From

An IPosition80representing the position of the first coordinate on the terrain.

To

An IPosition80representing the position of the second coordinate on the terrain.

Return Value

pVal

An IPosition80representing the position and orientation of the calculated angle.

Exceptions

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