Description
Interface to set and retrieve direction
options for aligned and constrained vectors.
Public Methods
Assign |
Assign a new
direction. |
AssignEuler |
Helper method to set
direction using the Euler representation. Params B and C use Angle
Dimension. |
AssignPR |
Helper method to set
direction using the Pitch Roll representation. Pitch and Roll use
Angle Dimension. |
AssignRADec |
Helper method to set
direction using the Right Ascension and Declination representation.
Param Dec uses Latitude. Param RA uses Longitude. |
AssignXYZ |
Helper method to set
direction using the Cartesian representation. Params X, Y and Z are
dimensionless. |
ConvertTo |
Method to changes the
direction to the type specified. |
QueryEuler |
Helper method to get
direction using the Euler representation. Params B and C use Angle
Dimension. |
QueryEulerArray |
Returns the Euler elements
in an array. |
QueryPR |
Helper method to get
direction using the Pitch Roll representation. Pitch and Roll use
Angle Dimension. |
QueryPRArray |
Returns the PR elements in
an array. |
QueryRADec |
Helper method to 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 |
Helper method to get
direction using the Cartesian representation. Params X, Y and Z are
dimensionless. |
QueryXYZArray |
Returns the XYZ elements in
an array. |
Public Properties
DirectionType |
Returns the type of
direction currently being used. |
Example
Query direction as
another representation
[C#] |
Copy Code
|
object b = null, c = null;
direction.QueryEuler(AgEEulerDirectionSequence.e12, out b, out c);
Console.WriteLine("B = {0}, C = {1}", b, c);
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] |
Copy Code
|
#If Not CSToJava Then
Dim b As
Object = Nothing, c As
Object = Nothing
direction.QueryEuler(AgEEulerDirectionSequence.e12, b, c)
Console.WriteLine("B = {0}, C = {1}",
b, c)
#End If
#If Not CSToJava Then
Dim euler As Array =
direction.QueryEulerArray(AgEEulerDirectionSequence.e12)
#Else
#End If
Console.WriteLine("B = {0}, C = {1}",
euler.GetValue(0), euler.GetValue(1))
|
|
CoClasses that Implement
IAgDirection