AGI STK VGT 11 Send comments on this topic.
FindInAxes Method (IAgCrdnVector)
See Also  Example
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 a desired axes.





Description

Computes the vector in the specified axes.

Syntax

[Visual Basic .NET]
Public Function FindInAxes( _
   ByVal Epoch As System.Object, _
   ByVal Axes As IAgCrdnAxes _
) As IAgCrdnVectorFindInAxesResult

[C#]
public IAgCrdnVectorFindInAxesResult FindInAxes(
System.Object Epoch,
IAgCrdnAxes Axes
);

[Managed C++]
public: IAgCrdnVectorFindInAxesResult^ FindInAxes(
VARIANT Epoch,
IAgCrdnAxes ^ Axes
);

[Java]
public IAgCrdnVectorFindInAxesResult findInAxes(
Variant Epoch,
IAgCrdnAxes Axes
);

[Unmanaged C++]
public: HRESULT FindInAxes(
VARIANT Epoch,
IAgCrdnAxes * Axes,
IAgCrdnVectorFindInAxesResult ** ReturnValue
);

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 a desired axes.

Example

Computes the vector in the Earth's Fixed axes.
[C#] Copy Code
IAgCrdnVectorFindInAxesResult result = vector.FindInAxes(0, provider.WellKnownAxes.Earth.Fixed); 
if (result.IsValid) 

    Console.WriteLine("Vector in the Earth's Fixed axes (x,y,z) => {0},{1},{2}"
        result.Vector.X, result.Vector.Y, result.Vector.Z); 

 

Computes the vector in the Earth's Fixed axes.
[Visual Basic .NET] Copy Code
Dim result As IAgCrdnVectorFindInAxesResult = vector.FindInAxes(0, provider.WellKnownAxes.Earth.Fixed)
If result.IsValid Then
    Console.WriteLine("Vector in the Earth's Fixed axes (x,y,z) => {0},{1},{2}", result.Vector.X, result.Vector.Y, result.Vector.Z)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1