Class Pair

java.lang.Object
net.sf.geographiclib.Pair

public class Pair extends Object
A pair of double precision numbers.

This duplicates the C++ class std::pair<double, double>.

  • Field Summary

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

    Constructors
    Constructor
    Description
    No-argument Constructor
    Pair(double first, double second)
    Constructor
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • first

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

      public 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.
    • Pair

      public Pair()
      No-argument Constructor