Description
Interface to set and retrieve direction options for aligned and constrained vectors.
Public Methods
Assign | Assign a new direction. |
AssignEuler | Set direction using the Euler representation. Params B and C use Angle Dimension. |
AssignPR | Set direction using the Pitch Roll representation. Pitch and Roll use Angle Dimension. |
AssignRADec | Set direction using the Right Ascension and Declination representation. Param Dec uses Latitude. Param RA uses Longitude. |
AssignXYZ | Set direction using the Cartesian representation. Params X, Y and Z are dimensionless. |
ConvertTo | Changes the direction to the type specified. |
QueryEuler | Get direction using the Euler representation. Params B and C use Angle Dimension. |
QueryEulerArray | Returns the Euler elements in an array. |
QueryPR | Get direction using the Pitch Roll representation. Pitch and Roll use Angle Dimension. |
QueryPRArray | Returns the PR elements in an array. |
QueryRADec | Get direction using the Right Ascension and Declination representation. Param Dec uses Latitude. Param RA uses Longitude. |
QueryRADecArray | Returns the RADec elements in an array. |
QueryXYZ | Get direction using the Cartesian representation. Params X, Y and Z are dimensionless. |
QueryXYZArray | Returns the XYZ elements in an array. |
Public Properties
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))
|
|