Class RotationComponent

java.lang.Object
gaiasky.scenegraph.component.RotationComponent

public class RotationComponent extends Object
Provides the information for the rotation of this body
  • Field Details

    • angularVelocity

      public double angularVelocity
      Angular velocity [deg/hour] around the rotation axis.
    • angle

      public double angle
      Current angle with respect to the rotationAxis in degrees.
    • period

      public double period
      The rotation period in hours.
    • axialTilt

      public double axialTilt
      Angle between equatorial plane and orbital plane in degrees.
    • inclination

      public double inclination
      Angle between orbital plane and the ecliptic in degrees.
    • ascendingNode

      public double ascendingNode
      The ascending node in degrees, should not be used, as it obviously causes the body to wobble.
    • meridianAngle

      public double meridianAngle
      The meridian (hour) angle at the epoch J2000.0, in degrees
  • Constructor Details

    • RotationComponent

      public RotationComponent()
  • Method Details

    • setPeriod

      public void setPeriod(Double rotationPeriod)
      Sets the rotation period.
      Parameters:
      rotationPeriod - The period in hours.
    • update

      public void update(ITimeFrameProvider time)
    • setAxialtilt

      public void setAxialtilt(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(Double angle)
    • setInclination

      public void setInclination(Double i)
      Sets the inclination, the angle between the orbital plane and the reference plane
      Parameters:
      i - Inclination in deg.
    • setInclination

      public void setInclination(Long i)
      Sets the inclination, the angle between the orbital plane and the reference plane
      Parameters:
      i - Inclination in deg.
    • setAscendingnode

      public void setAscendingnode(Double an)
      Sets the ascending node.
      Parameters:
      an - Angle in deg.
    • setMeridianangle

      public void setMeridianangle(Double ma)
      Sets the meridian angle.
      Parameters:
      ma - Angle in deg.
    • toString

      public String toString()
      Overrides:
      toString in class Object