AGI STK VGT 11Send comments on this topic.
FindInAxes Method (IAgCrdnAxes)
See Also
Epoch
Specify an epoch. The method may throw an exception if the epoch parameter specified cannot be converted to a currently selected date unit.
Axes
Specify an input axes.
Windows






Windows & Linux

Description

Find an orientation in the specified axes.

Syntax

[Visual Basic .NET]
Public Function FindInAxes( _
    ByVal Epoch As System.Object, _
    ByVal Axes As IAgCrdnAxes _
) As 
[C#]
public IAgCrdnAxesFindInAxesResult FindInAxes(
    System.Object Epoch,
    IAgCrdnAxes Axes
);
[Managed C++]
public: IAgCrdnAxesFindInAxesResult^ FindInAxes(
    VARIANT Epoch,
    IAgCrdnAxes ^ Axes
);
[Java]
public IAgCrdnAxesFindInAxesResult findInAxes(
    VARIANT Epoch,
    IAgCrdnAxes Axes
);
[Unmanaged C++]
public: HRESULT FindInAxes(
    VARIANT Epoch,
    IAgCrdnAxes * Axes,
    IAgCrdnAxesFindInAxesResult ** ppRetVal
);

Parameters

Epoch
Specify an epoch. The method may throw an exception if the epoch parameter specified cannot be converted to a currently selected date unit.
Axes
Specify an input axes.

See Also

Example

Finds the axes' orientation in Earth's Fixed axes.
[C#]
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]
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
© 2019 Analytical Graphics, Inc. All Rights Reserved.