Class ECEFGravity

All Implemented Interfaces:
Serializable, Cloneable

public class ECEFGravity extends GravityOrGravitation<ECEFGravity>
Contains acceleration due to gravity resolved about ECEF 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

    • ECEFGravity

      public ECEFGravity()
      Constructor.
    • ECEFGravity

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

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

      public ECEFGravity(ECEFGravity 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<ECEFGravity>
      Returns:
      Hash code.
    • equals

      public boolean equals(Object obj)
      Checks if provided object is a ECEFGravity instance having exactly the same contents as this instance.
      Specified by:
      equals in class GravityOrGravitation<ECEFGravity>
      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.