![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.geographiclib.Pair Maven / Gradle / Ivy
Show all versions of GeographicLib-Java Show documentation
/**
* Implementation of the net.sf.geographiclib.Pair class
*
* Copyright (c) Charles Karney (2013-2020) ∑ and licensed
* under the MIT/X11 License. For more information, see
* https://geographiclib.sourceforge.io/
**********************************************************************/
package net.sf.geographiclib;
/**
* A pair of double precision numbers.
*
* This duplicates the C++ class {@code std::pair}.
**********************************************************************/
public class Pair {
/**
* The first member of the pair.
**********************************************************************/
public double first;
/**
* The second member of the pair.
**********************************************************************/
public double second;
/**
* Constructor
*
* @param first the first member of the pair.
* @param second the second member of the pair.
**********************************************************************/
public Pair(double first, double second)
{ this.first = first; this.second = second; }
/**
* No-argument Constructor
**********************************************************************/
public Pair() {}
}