Class Pair

java.lang.Object
com.irurueta.navigation.geodesic.Pair

public class Pair extends Object
A pair of double precision numbers. This is like C++ class std::pair<double, double>.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private double
    The first member of the pair.
    private double
    The second member of the pair.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Pair(double first, double second)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the first member of the pair.
    double
    Gets the second member of the pair.
    void
    setFirst(double first)
    Sets the first member of the pair.
    void
    setSecond(double second)
    Sets the second member of the pair.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • first

      private double first
      The first member of the pair.
    • second

      private double second
      The second member of the pair.
  • Constructor Details

    • Pair

      public Pair(double first, double second)
      Constructor.
      Parameters:
      first - the first member of the pair.
      second - the second member of the pair.
  • Method Details

    • getFirst

      public double getFirst()
      Gets the first member of the pair.
      Returns:
      first member of the pair.
    • setFirst

      public void setFirst(double first)
      Sets the first member of the pair.
      Parameters:
      first - first member of the pair.
    • getSecond

      public double getSecond()
      Gets the second member of the pair.
      Returns:
      second member of the pair.
    • setSecond

      public void setSecond(double second)
      Sets the second member of the pair.
      Parameters:
      second - second member of the pair.