Package gaiasky.scenegraph.component
Class RotationComponent
java.lang.Object
gaiasky.scenegraph.component.RotationComponent
public class RotationComponent
extends java.lang.Object
Provides the information for the rotation of this body
-
Field Summary
Fields Modifier and Type Field Description doubleangleCurrent angle with respect to the rotationAxis in degrees.doubleangularVelocityAngular velocity [deg/hour] around the rotation axis.doubleascendingNodeThe ascending node in degrees, should not be used, as it obviously causes the body to wobble.doubleaxialTiltAngle between equatorial plane and orbital plane in degrees.doubleinclinationAngle between orbital plane and the ecliptic in degrees.doublemeridianAngleThe meridian (hour) angle at the epoch J2000.0, in degreesdoubleperiodThe rotation period in hours. -
Constructor Summary
Constructors Constructor Description RotationComponent() -
Method Summary
Modifier and Type Method Description voidsetAngle(java.lang.Double angle)voidsetAscendingnode(java.lang.Double an)Sets the ascending node.voidsetAxialtilt(java.lang.Double f)Sets the axial tilt, the angle between the equatorial plane and the orbital plane.voidsetInclination(java.lang.Double i)Sets the inclination, the angle between the orbital plane and the reference planevoidsetInclination(java.lang.Long i)Sets the inclination, the angle between the orbital plane and the reference planevoidsetMeridianangle(java.lang.Double ma)Sets the meridian angle.voidsetPeriod(java.lang.Double rotationPeriod)Sets the rotation period.java.lang.StringtoString()voidupdate(ITimeFrameProvider time)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
public void setPeriod(java.lang.Double rotationPeriod)Sets the rotation period.- Parameters:
rotationPeriod- The period in hours.
-
update
-
setAxialtilt
public void setAxialtilt(java.lang.Double f)Sets the axial tilt, the angle between the equatorial plane and the orbital plane.- Parameters:
f- Angle in deg.
-
setAngle
public void setAngle(java.lang.Double angle) -
setInclination
public void setInclination(java.lang.Double i)Sets the inclination, the angle between the orbital plane and the reference plane- Parameters:
i- Inclination in deg.
-
setInclination
public void setInclination(java.lang.Long i)Sets the inclination, the angle between the orbital plane and the reference plane- Parameters:
i- Inclination in deg.
-
setAscendingnode
public void setAscendingnode(java.lang.Double an)Sets the ascending node.- Parameters:
an- Angle in deg.
-
setMeridianangle
public void setMeridianangle(java.lang.Double ma)Sets the meridian angle.- Parameters:
ma- Angle in deg.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-