public class Euler extends CommentsContainer
Euler rotations entries.| Constructor and Description |
|---|
Euler()
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AttitudeEndoints |
getEndpoints()
Get the endpoints (i.e.
|
RotationOrder |
getEulerRotSeq()
Get the rotation order of Euler angles.
|
double[] |
getRotationAngles()
Get the coordinates of the Euler angles (rad).
|
double[] |
getRotationRates()
Get the rates of the Euler angles (rad/s).
|
boolean |
hasRates()
Check if the logical block includes rates.
|
boolean |
isSpacecraftBodyRate()
Check if rates are specified in spacecraft body frame.
|
boolean |
rateFrameIsA()
Check if rates are specified in
frame A. |
void |
setEulerRotSeq(RotationOrder eulerRotSeq)
Set the rotation order for Euler angles.
|
void |
setInRotationAngles(boolean inRotationAngles)
Set flag for rotation angle parsing.
|
void |
setRateFrameIsA(boolean rateFrameIsA)
Set the frame in which rates are specified.
|
void |
setRotationAngle(char axis,
double angle)
Set the Euler angle about (rad).
|
void |
setRotationRate(char axis,
double rate)
Set the rate of Euler angle (rad/s).
|
void |
validate(double version)
Check is all mandatory entries have been initialized.
|
acceptComments, addComment, checkAllowed, checkNotNaN, checkNotNegative, checkNotNull, getComments, refuseFurtherCommentspublic void validate(double version)
This method should throw an exception if some mandatory entries are missing or not compatible with version number.
validate in interface Sectionvalidate in class CommentsContainerversion - format versionpublic AttitudeEndoints getEndpoints()
public RotationOrder getEulerRotSeq()
public void setEulerRotSeq(RotationOrder eulerRotSeq)
eulerRotSeq - order to be setpublic boolean rateFrameIsA()
frame A.frame Apublic void setRateFrameIsA(boolean rateFrameIsA)
rateFrameIsA - if true, rates are specified in frame Apublic boolean isSpacecraftBodyRate()
Mandatory entries must have been
initialized properly to non-null values before this method is called,
otherwise NullPointerException will be thrown.
public double[] getRotationAngles()
public void setRotationAngle(char axis,
double angle)
axis - rotation axisangle - angle to setpublic double[] getRotationRates()
public void setRotationRate(char axis,
double rate)
axis - rotation axisrate - angle rate to setpublic void setInRotationAngles(boolean inRotationAngles)
inRotationAngles - if true, we are in the rotationAngles part of XML filespublic boolean hasRates()
Copyright © 2002-2021 CS GROUP. All rights reserved.