physics
Class Geometry.DoublePair
java.lang.Object
physics.Geometry.DoublePair
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- Geometry
public static class Geometry.DoublePair
- extends java.lang.Object
- implements java.io.Serializable
DoublePair is a simple immutable record type representing
a pair of doubles.
- See Also:
- Serialized Form
|
Field Summary |
double |
d1
|
double |
d2
|
|
Constructor Summary |
Geometry.DoublePair(double both)
Creates a DoublePair with d1 and
d2 both set to the given argumen |
Geometry.DoublePair(double d1,
double d2)
Creates a DoublePair with d1 and
d2 as given |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
d1
public final double d1
d2
public final double d2
Geometry.DoublePair
public Geometry.DoublePair(double d1,
double d2)
- Creates a DoublePair with
d1 and
d2 as given
Geometry.DoublePair
public Geometry.DoublePair(double both)
- Creates a DoublePair with
d1 and
d2 both set to the given argumen
areFinite
public boolean areFinite()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
equals
public boolean equals(Geometry.DoublePair p)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object