edu.mines.jtk.sgl
Class Tuple4

java.lang.Object
  extended by edu.mines.jtk.sgl.Tuple4
Direct Known Subclasses:
Point4

public class Tuple4
extends java.lang.Object

A tuple with four components x, y, z, and w.

Version:
2005.05.19
Author:
Dave Hale, Colorado School of Mines

Field Summary
 double w
          The component w.
 double x
          The component x.
 double y
          The component y.
 double z
          The component z.
 
Constructor Summary
Tuple4()
          Constructs a tuple with all components equal to zero.
Tuple4(double x, double y, double z, double w)
          Constructs a tuple with specified components.
Tuple4(Tuple4 t)
          Constructs a copy of the specified tuple.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x
The component x.


y

public double y
The component y.


z

public double z
The component z.


w

public double w
The component w.

Constructor Detail

Tuple4

public Tuple4()
Constructs a tuple with all components equal to zero.


Tuple4

public Tuple4(double x,
              double y,
              double z,
              double w)
Constructs a tuple with specified components.

Parameters:
x - the x component.
y - the y component.
z - the z component.
w - the w component.

Tuple4

public Tuple4(Tuple4 t)
Constructs a copy of the specified tuple.

Parameters:
t - the tuple.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object