Package gaiasky.scene.record
Class RotationComponent
java.lang.Object
gaiasky.scene.record.RotationComponent
- All Implemented Interfaces:
IUpdatable<RotationComponent>
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Current angle with respect to the rotationAxis in degrees.double
Angular velocity [deg/hour] around the rotation axis.double
The ascending node in degrees, should not be used, as it obviously causes the body to wobble.double
Angle between equatorial plane and orbital plane in degrees.double
Angle between orbital plane and the ecliptic in degrees.double
The meridian (hour) angle at the epoch J2000.0, in degreesdouble
The rotation period in hours. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFrom
(RotationComponent other) void
void
void
Sets the ascending node.void
void
Sets the axial tilt, the angle between the equatorial plane and the orbital plane.void
Sets the inclination, the angle between the orbital plane and the reference planevoid
Sets the inclination, the angle between the orbital plane and the reference planevoid
void
Sets the meridian angle.void
Sets the rotation period.toString()
void
update
(ITimeFrameProvider time) void
updateWith
(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
-
-
Constructor Details
-
RotationComponent
public RotationComponent()
-
-
Method Details
-
setPeriod
Sets the rotation period.- Parameters:
rotationPeriod
- The rotation period in hours.
-
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
Sets the ascending node.- Parameters:
an
- Angle in deg.
-
setAscendingnode
-
setMeridianAngle
Sets the meridian angle.- Parameters:
ma
- Angle in deg.
-
setMeridianangle
-
toString
-
copyFrom
-
updateWith
- Specified by:
updateWith
in interfaceIUpdatable<RotationComponent>
-