All Packages Class Hierarchy This Package Previous Next Index
Class jnt.util.Tuple
java.lang.Object
|
+----jnt.util.Tuple
- public class Tuple
- extends Object
A pair of real numbers (x,y), with no restriction that x <= y.
- Version:
- 25 Sept 1997
- Author:
- Ronald F. Boisvert, NIST
-
x
- The first element of the tuple.
-
y
- The second element of the tuple.
-
Tuple()
- Creates the tuple (0,0)
-
Tuple(double, double)
- Creates the tuple (x,y).
-
Tuple(float, float)
- Creates the tuple (x,y).
-
Tuple(int, int)
- Creates the tuple (x,y).
-
toString()
- Returns a representation of the tuple as a String.
x
public double x
- The first element of the tuple.
y
public double y
- The second element of the tuple.
Tuple
public Tuple()
- Creates the tuple (0,0)
Tuple
public Tuple(double x,
double y)
- Creates the tuple (x,y).
Tuple
public Tuple(float x,
float y)
- Creates the tuple (x,y).
Tuple
public Tuple(int x,
int y)
- Creates the tuple (x,y).
toString
public String toString()
- Returns a representation of the tuple as a String.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index