STK Vector Geometry ToolSend comments on this topic.
FindInAxes Method (IAgCrdnAxes)
See Also
Epoch
Specify an epoch.
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 IAgCrdnAxesFindInAxesResult
[C#]
public IAgCrdnAxesFindInAxesResult FindInAxes(
    System.Object Epoch,
    IAgCrdnAxes Axes
);
[Managed C++]
public: IAgCrdnAxesFindInAxesResult^ FindInAxes(
    VARIANT Epoch,
    IAgCrdnAxes ^ Axes
);
[Unmanaged C++]
public: HRESULT FindInAxes(
    VARIANT Epoch,
    IAgCrdnAxes * Axes,
    IAgCrdnAxesFindInAxesResult ** ppRetVal
);
[Java]
public IAgCrdnAxesFindInAxesResult findInAxes(
    AgVariant Epoch,
    IAgCrdnAxes Axes
);
[Python - STK API ]
def FindInAxes(self, Epoch:typing.Any, Axes:"IAgCrdnAxes") -> "IAgCrdnAxesFindInAxesResult":

Parameters

Epoch
Specify an epoch.
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)
{
    IAgOrientationEulerAngles angles = (IAgOrientationEulerAngles)result.Orientation.ConvertTo(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 IAgOrientationEulerAngles = DirectCast(result.Orientation.ConvertTo(AgEOrientationType.eEulerAngles), IAgOrientationEulerAngles)
	Console.WriteLine("Euler Angles [A,B,C,SEQ] => [{1}, {1}, {2}, {3}]", angles.A, angles.B, angles.C, angles.Sequence)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.