physics
Class Geometry.DoublePair

java.lang.Object
  extended by 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
 
Method Summary
 boolean areFinite()
           
 boolean equals(Geometry.DoublePair p)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

d1

public final double d1

d2

public final double d2
Constructor Detail

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

Method Detail

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