AGI STK VGT 11 Send comments on this topic.
TransformWithRate 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 output axes to transform to.
VectorInMyAxes
Specify an input vector to be transformed from this axes into the output axes.
RateInMyAxes
Specify an input vector rate to be transformed from this axes into the output axes.





Description

Transforms the input vector and vector's rate from this axes into the output axes.

Syntax

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

[C#]
public IAgCrdnAxesTransformWithRateResult TransformWithRate(
System.Object Epoch,
IAgCrdnAxes OutputAxes,
IAgCartesian3Vector VectorInMyAxes,
IAgCartesian3Vector RateInMyAxes
);

[Managed C++]
public: IAgCrdnAxesTransformWithRateResult^ TransformWithRate(
VARIANT Epoch,
IAgCrdnAxes ^ OutputAxes,
IAgCartesian3Vector ^ VectorInMyAxes,
IAgCartesian3Vector ^ RateInMyAxes
);

[Java]
public IAgCrdnAxesTransformWithRateResult transformWithRate(
Variant Epoch,
IAgCrdnAxes OutputAxes,
IAgCartesian3Vector VectorInMyAxes,
IAgCartesian3Vector RateInMyAxes
);

[Unmanaged C++]
public: HRESULT TransformWithRate(
VARIANT Epoch,
IAgCrdnAxes * OutputAxes,
IAgCartesian3Vector * VectorInMyAxes,
IAgCartesian3Vector * RateInMyAxes,
IAgCrdnAxesTransformWithRateResult ** 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 output axes to transform to.
VectorInMyAxes
Specify an input vector to be transformed from this axes into the output axes.
RateInMyAxes
Specify an input vector rate to be transformed from this axes into the output axes.

Example

Transform a vector and vector's rate to the Earth's Fixed axes.
[C#] Copy Code
IAgCrdnAxesTransformWithRateResult result = axes.TransformWithRate(0
    provider.WellKnownAxes.Earth.Fixed, vector, vectorRate); 
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); 
    Console.WriteLine("Transformed Vector Rate (x,y,z) => {0}, {1}, {2}", result.Velocity.X, result.Velocity.Y, result.Velocity.Z); 

 

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

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1