Record Class DatumTransformation.HelmertParameters

java.lang.Object
java.lang.Record
org.episteme.natural.earth.coordinates.DatumTransformation.HelmertParameters
Enclosing class:
DatumTransformation

public static record DatumTransformation.HelmertParameters(double dx, double dy, double dz, double rx, double ry, double rz, double s) extends Record
Parameters for a Helmert 7-parameter transformation.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Summary

    Constructors
    Constructor
    Description
    HelmertParameters(double dx, double dy, double dz, double rx, double ry, double rz, double s)
    Creates an instance of a HelmertParameters record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    dx()
    Returns the value of the dx record component.
    double
    dy()
    Returns the value of the dy record component.
    double
    dz()
    Returns the value of the dz record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    rx()
    Returns the value of the rx record component.
    double
    ry()
    Returns the value of the ry record component.
    double
    rz()
    Returns the value of the rz record component.
    double
    s()
    Returns the value of the s record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HelmertParameters

      public HelmertParameters(double dx, double dy, double dz, double rx, double ry, double rz, double s)
      Creates an instance of a HelmertParameters record class.
      Parameters:
      dx - the value for the dx record component
      dy - the value for the dy record component
      dz - the value for the dz record component
      rx - the value for the rx record component
      ry - the value for the ry record component
      rz - the value for the rz record component
      s - the value for the s record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dx

      public double dx()
      Returns the value of the dx record component.
      Returns:
      the value of the dx record component
    • dy

      public double dy()
      Returns the value of the dy record component.
      Returns:
      the value of the dy record component
    • dz

      public double dz()
      Returns the value of the dz record component.
      Returns:
      the value of the dz record component
    • rx

      public double rx()
      Returns the value of the rx record component.
      Returns:
      the value of the rx record component
    • ry

      public double ry()
      Returns the value of the ry record component.
      Returns:
      the value of the ry record component
    • rz

      public double rz()
      Returns the value of the rz record component.
      Returns:
      the value of the rz record component
    • s

      public double s()
      Returns the value of the s record component.
      Returns:
      the value of the s record component