Class RotationComponent
java.lang.Object
gaiasky.scene.record.RotationComponent
- All Implemented Interfaces:
IUpdatable<RotationComponent>
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleCurrent angle with respect to the rotationAxis in degrees.doubleAngular velocity [deg/hour] around the rotation axis.doubleThe ascending node in degrees, should not be used, as it obviously causes the body to wobble.doubleAngle between equatorial plane and orbital plane in degrees.doubleAngle between orbital plane and the ecliptic in degrees.doubleThe meridian (hour) angle at the epoch J2000.0, in degreesdoubleThe rotation period in hours.double[]Pole of the rotation axis, as {right ascension, declination} in degrees, J2000. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyFrom(RotationComponent other) getOrientation(String refPlaneTransform, Matrix4D out) Builds the orientation of the body: the matrix that takes its local axes into the equatorial frame.booleanWhether the body declares its rotation pole explicitly, in which case node, inclination and axial tilt are not used.voidvoidSet rotation angular velocity in degrees/hour.voidvoidSets the ascending node.voidvoidSets the axial tilt, the angle between the equatorial plane and the orbital plane.voidSets the inclination, the angle between the orbital plane and the reference planevoidSets the inclination, the angle between the orbital plane and the reference planevoidvoidSets the meridian angle.voidSets the rotation period in hours.voidsetPole(double[] pole) Sets the pole of the rotation axis, in degrees, in the equatorial frame of J2000.toString()voidupdate(ITimeFrameProvider time) voidupdateWith(RotationComponent object)
-
Field Details
-
angularVelocity
public double angularVelocityAngular velocity [deg/hour] around the rotation axis. -
angle
public double angleCurrent angle with respect to the rotationAxis in degrees. -
period
public double periodThe rotation period in hours. -
axialTilt
public double axialTiltAngle between equatorial plane and orbital plane in degrees. -
inclination
public double inclinationAngle between orbital plane and the ecliptic in degrees. -
ascendingNode
public double ascendingNodeThe ascending node in degrees, should not be used, as it obviously causes the body to wobble. -
meridianAngle
public double meridianAngleThe meridian (hour) angle at the epoch J2000.0, in degrees -
pole
public double[] polePole of the rotation axis, as {right ascension, declination} in degrees, J2000. Supersedes node, inclination and axial tilt. A retrograde body has a negativeperiod.
-
-
Constructor Details
-
RotationComponent
public RotationComponent()
-
-
Method Details
-
setPeriod
Sets the rotation period in hours. Overwrites the angular velocity.- Parameters:
rotationPeriod- The rotation period in hours.
-
setAngularVelocity
Set rotation angular velocity in degrees/hour. Overwrites the rotation period.- Parameters:
av- The angular velocity in deg/h.
-
update
-
setAxialTilt
Sets the axial tilt, the angle between the equatorial plane and the orbital plane.- Parameters:
f- Angle in deg.
-
setAxialtilt
-
setAngle
-
setInclination
Sets the inclination, the angle between the orbital plane and the reference plane- Parameters:
i- Inclination in deg.
-
setInclination
Sets the inclination, the angle between the orbital plane and the reference plane- Parameters:
i- Inclination in deg.
-
setAscendingNode
-
setAscendingnode
-
setMeridianAngle
-
setMeridianangle
-
setPole
public void setPole(double[] pole) Sets the pole of the rotation axis, in degrees, in the equatorial frame of J2000. -
hasExplicitPole
public boolean hasExplicitPole()Whether the body declares its rotation pole explicitly, in which case node, inclination and axial tilt are not used. -
getOrientation
-
toString
-
copyFrom
-
updateWith
- Specified by:
updateWithin interfaceIUpdatable<RotationComponent>
-
copy
-