AGI STK VGT 11 Send comments on this topic.
Earth Property (IAgCrdnWellKnownAxes)
See Also  Example





Description

Earth's well-known axes.

Property type

Read-only property

Syntax

[Visual Basic .NET]
Public Property Earth() As IAgCrdnWellKnownEarthAxes

[C#]
public IAgCrdnWellKnownEarthAxes Earth {get;}

[Managed C++]
public: __property IAgCrdnWellKnownEarthAxes^ get_Earth();

[Unmanaged C++]
public: HRESULT get_Earth(
IAgCrdnWellKnownEarthAxes ** ppRetVal
);

[Java]
public IAgCrdnWellKnownEarthAxes getEarth();

Example

Finds the axes' orientation in Earth's Fixed axes.
[C#] Copy Code
IAgCrdnAxesFindInAxesResult result = axes.FindInAxes(0
    provider.WellKnownAxes.Earth.Fixed); 
if (result.IsValid) 

    AGI.STKUtil.IAgOrientationEulerAngles angles; 
    angles = (AGI.STKUtil.IAgOrientationEulerAngles)result.Orientation.ConvertTo(AGI.STKUtil.AgEOrientationType.eEulerAngles); 
    Console.WriteLine("Euler Angles [A,B,C,SEQ] => [{1}, {1}, {2}, {3}]", angles.A, angles.B, angles.C, angles.Sequence); 

 

Finds the axes' orientation in Earth's Fixed axes.
[Visual Basic .NET] Copy Code
Dim result As IAgCrdnAxesFindInAxesResult = axes.FindInAxes(0, provider.WellKnownAxes.Earth.Fixed)
If result.IsValid Then
    Dim angles As AGI.STKUtil.IAgOrientationEulerAngles
    angles = DirectCast(result.Orientation.ConvertTo(AGI.STKUtil.AgEOrientationType.eEulerAngles), AGI.STKUtil.IAgOrientationEulerAngles)
    Console.WriteLine("Euler Angles [A,B,C,SEQ] => [{1}, {1}, {2}, {3}]", angles.A, angles.B, angles.C, angles.Sequence)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1