public abstract class Tuple3i
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
x
The x coordinate.
|
int |
y
The y coordinate.
|
int |
z
The z coordinate.
|
| Constructor and Description |
|---|
Tuple3i()
Constructs and initializes a Tuple3i to (0,0,0).
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Tuple3i t)
Sets the value of this tuple to the sum of itself and t1.
|
boolean |
equals(java.lang.Object o)
Returns true if the Object o is of type Tuple3i and all of the data members
of t are equal to the corresponding data members in this Tuple3i.
|
int |
hashCode()
Returns a hash number based on the data values in this object.
|
void |
scaleAdd(int s,
Tuple3i t1,
Tuple3i t2)
Sets the value of this tuple to the scalar multiplication of tuple t1 plus
tuple t2 (this = s*t1 + t2).
|
void |
set(int x,
int y,
int z)
Sets the value of this tuple to to the specified x, y, and z coordinates.
|
void |
setT(Tuple3i t1)
Sets the value of this tuple to the value of tuple t1.
|
java.lang.String |
toString()
Returns a string that contains the values of this Tuple3i.
|
public int x
public int y
public int z
public final void set(int x,
int y,
int z)
x - the x coordinate.y - the y coordinate.z - the z coordinate.public final void setT(Tuple3i t1)
t1 - the tuple to be copied.public final void add(Tuple3i t)
t - is the other tuplepublic final void scaleAdd(int s,
Tuple3i t1,
Tuple3i t2)
s - the scalar valuet1 - the tuple to be multipledt2 - the tuple to be addedpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object with which the comparison is made.public java.lang.String toString()
toString in class java.lang.Object