Class ECIGravitation

All Implemented Interfaces:
Serializable, Cloneable

public class ECIGravitation extends GravityOrGravitation<ECIGravitation>
Contains acceleration due to gravity resolved about ECI frame.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version. This is used to ensure compatibility of deserialization of permanently stored serialized instances.
      See Also:
  • Constructor Details

    • ECIGravitation

      public ECIGravitation()
      Constructor.
    • ECIGravitation

      public ECIGravitation(double gx, double gy, double gz)
      Constructor.
      Parameters:
      gx - acceleration due to gravity through ECI x-axis expressed in meters per squared second (m/s^2).
      gy - acceleration due to gravity through ECI y-axis expressed in meters per squared second (m/s^2).
      gz - acceleration due to gravity through ECI z-axis expressed in meters per squared second (m/s^2).
    • ECIGravitation

      public ECIGravitation(com.irurueta.units.Acceleration gx, com.irurueta.units.Acceleration gy, com.irurueta.units.Acceleration gz)
      Constructor.
      Parameters:
      gx - acceleration due to gravity through ECI x-axis to be set.
      gy - acceleration due to gravity through ECI y-axis to be set.
      gz - acceleration due to gravity through ECI z-axis to be set.
    • ECIGravitation

      public ECIGravitation(ECIGravitation input)
      Constructor.
      Parameters:
      input - instance to copy data from.
  • Method Details

    • hashCode

      public int hashCode()
      Computes and returns hash code for this instance. Hash codes are almost unique values that are useful for fast classification and storage of objects in collections.
      Overrides:
      hashCode in class GravityOrGravitation<ECIGravitation>
      Returns:
      Hash code.
    • equals

      public boolean equals(Object obj)
      Check if provided object is a ECIGravitation instance having exactly the same contents as this instance.
      Specified by:
      equals in class GravityOrGravitation<ECIGravitation>
      Parameters:
      obj - object to be compared.
      Returns:
      true if both objects are considered to be equal, false otherwise.
    • clone

      protected Object clone() throws CloneNotSupportedException
      Makes a copy of this instance.
      Overrides:
      clone in class Object
      Returns:
      a copy of this instance.
      Throws:
      CloneNotSupportedException - if clone fails for some reason.