GetAimingAngles

This method returns the calculated angle between two specified 3D-coordinate. The two points are defined with X, Y coordinates, and Elevation relative to the terrain database vertical datum base ellipsoid (absolute height). The return doubleYaw and doublePitch values define the pitch and yaw angles for viewing the second point from the first.

 

HRESULT GetAimingAngles(

 [in] double X1,

 [in] double Y1,

 [in] double Elevation1,

 [in] double X2,

 [in] double Y2,

 [in] double Elevation2,

 [out] VARIANT* doubleYaw,

 [out] VARIANT* doublePitch);

Parameters:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

TE_E_INTERNAL

TerraExplorer internal error.