STK UtilSend comments on this topic.
IAgDirection Interface

Description

Interface to set and retrieve direction options for aligned and constrained vectors.

Public Methods

Public Method AssignAssign a new direction.
Public Method AssignEulerSet direction using the Euler representation. Params B and C use Angle Dimension.
Public Method AssignPRSet direction using the Pitch Roll representation. Pitch and Roll use Angle Dimension.
Public Method AssignRADecSet direction using the Right Ascension and Declination representation. Param Dec uses Latitude. Param RA uses Longitude.
Public Method AssignXYZSet direction using the Cartesian representation. Params X, Y and Z are dimensionless.
Public Method ConvertToChanges the direction to the type specified.
Public Method QueryEulerGet direction using the Euler representation. Params B and C use Angle Dimension.
Public Method QueryEulerArrayReturns the Euler elements in an array.
Public Method QueryPRGet direction using the Pitch Roll representation. Pitch and Roll use Angle Dimension.
Public Method QueryPRArrayReturns the PR elements in an array.
Public Method QueryRADecGet direction using the Right Ascension and Declination representation. Param Dec uses Latitude. Param RA uses Longitude.
Public Method QueryRADecArrayReturns the RADec elements in an array.
Public Method QueryXYZGet direction using the Cartesian representation. Params X, Y and Z are dimensionless.
Public Method QueryXYZArrayReturns the XYZ elements in an array.

Public Properties

Public Property DirectionTypeReturns the type of direction currently being used.

CoClasses that Implement IAgDirection

Example

Query direction as another representation
[C#]
// Method 1
object b = null, c = null;
direction.QueryEuler(AgEEulerDirectionSequence.e12, out b, out c);
Console.WriteLine("B = {0}, C = {1}", b, c);
// Method 2
// The Query functions returns a one dimension array
// The number of column rows depends on the representation
Array euler = direction.QueryEulerArray(AgEEulerDirectionSequence.e12);
Console.WriteLine("B = {0}, C = {1}", euler.GetValue(0), euler.GetValue(1));
Query direction as another representation
[Visual Basic .NET]
' Method 1
Dim b As Object = Nothing, c As Object = Nothing
direction.QueryEuler(AgEEulerDirectionSequence.e12, b, c)
Console.WriteLine("B = {0}, C = {1}", b, c)
' Method 2
' The Query functions returns a one dimension array
' The number of column rows depends on the representation
Dim euler As Array = direction.QueryEulerArray(AgEEulerDirectionSequence.e12)
Console.WriteLine("B = {0}, C = {1}", euler.GetValue(0), euler.GetValue(1))
© 2024 Analytical Graphics, Inc. All Rights Reserved.