AGI STK VGT 11 Send comments on this topic.
Transform Method (IAgCrdnAxes)
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.
OutputAxes
Specify an axes the input vector is transformed into.
VectorInMyAxes
Specify an input vector to be transformed from this axes into the ouput axes.





Description

Transforms the input vector from this axes into the output axes.

Syntax

[Visual Basic .NET]
Public Function Transform( _
   ByVal Epoch As System.Object, _
   ByVal OutputAxes As IAgCrdnAxes, _
   ByVal VectorInMyAxes As IAgCartesian3Vector _
) As IAgCrdnAxesTransformResult

[C#]
public IAgCrdnAxesTransformResult Transform(
System.Object Epoch,
IAgCrdnAxes OutputAxes,
IAgCartesian3Vector VectorInMyAxes
);

[Managed C++]
public: IAgCrdnAxesTransformResult^ Transform(
VARIANT Epoch,
IAgCrdnAxes ^ OutputAxes,
IAgCartesian3Vector ^ VectorInMyAxes
);

[Java]
public IAgCrdnAxesTransformResult transform(
Variant Epoch,
IAgCrdnAxes OutputAxes,
IAgCartesian3Vector VectorInMyAxes
);

[Unmanaged C++]
public: HRESULT Transform(
VARIANT Epoch,
IAgCrdnAxes * OutputAxes,
IAgCartesian3Vector * VectorInMyAxes,
IAgCrdnAxesTransformResult ** 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.
OutputAxes
Specify an axes the input vector is transformed into.
VectorInMyAxes
Specify an input vector to be transformed from this axes into the ouput axes.

Remarks

Consider a vector rotating and changing its magnitude in space. The vector's direction and magnitude as well as its time rate of change can be given at some specified time using Cartesian coordinates in one of VGT coordinate axes. The same vector at the same time will have different Cartesian coordinates with respect to different VGT coordinate axes. One set of coordinates can be obtained from the other using Transform methods defined for VGT coordinate axes: given time and coordinates with respect to one VGT coordinate axes, these methods output coordinates with respect to other axes. For example, consider a position vector of a satellite defined as displacement vector between the center of the Earth and the center of the satellite. When this position vector is viewed with respect to the Moon fixed axes, its magnitude remains the same because the vector is still a displacement vector between the Earth center and the center of satellite. Its Cartesian coordinates with respect to the Moon fixed axes will be different but not its magnitude.

Example

Transform a vector to the Earth's Fixed axes.
[C#] Copy Code
IAgCrdnAxesTransformResult result = axes.Transform(0
    provider.WellKnownAxes.Earth.Fixed, vector); 
if (result.IsValid) 

    Console.WriteLine("Original    Vector (x,y,z) => {0}, {1}, {2}", vector.X, vector.Y, vector.Z); 
    Console.WriteLine("Transformed Vector (x,y,z) => {0}, {1}, {2}", result.Vector.X, result.Vector.Y, result.Vector.Z); 

 

Transform a vector to the Earth's Fixed axes.
[Visual Basic .NET] Copy Code
Dim result As IAgCrdnAxesTransformResult = axes.Transform(0, provider.WellKnownAxes.Earth.Fixed, vector)
If result.IsValid Then
    Console.WriteLine("Original Vector (x,y,z) => {0}, {1}, {2}", vector.X, vector.Y, vector.Z)
    Console.WriteLine("Transformed Vector (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