javax.vecmath
Class Tuple4b
- Serializable
public abstract class Tuple4b
extends java.lang.Object
implements Serializable
A four byte tuple.
specification 1.1, implementation $Revision: 1.8 $, $Date: 1999/10/05 07:03:50 $ byte | w - The fourth value.
|
byte | x - The first value.
|
byte | y - The second value.
|
byte | z - The third value.
|
Tuple4b() - Constructs and initializes a Tuple4b to (0,0,0,0).
|
Tuple4b(byte b1, byte b2, byte b3, byte b4) - Constructs and initializes a Tuple4b from the specified three values.
|
Tuple4b(Tuple4b t1) - Constructs and initializes a Tuple4b from the specified Tuple4b.
|
Tuple4b(t[] ) -
Constructs and initializes a Tuple4b from input array of length 4.
|
boolean | equals(Tuple4b t1) - Returns true if all of the data members of Tuple4b t1 are equal to the corresponding
data members in this
|
void | get(Tuple4b t) - Places the value of the x,y,z components of this tuple into the tuple t1.
|
void | get(t[] ) - Places the value of the x,y,z components of this Tuple4b into the array of length 4.
|
int | hashCode() - Returns a hash number based on the data values in this object.
|
void | set(Tuple4b t1) - Sets the value of the data members of this tuple to the value of the argument tuple t1.
|
void | set(t[] ) - Sets the value of the data members of this tuple to the value of the argument tuple t1.
|
String | toString() - Returns a string that contains the values of this Tuple4b.
|
w
public byte w
The fourth value.
x
public byte x
The first value.
y
public byte y
The second value.
z
public byte z
The third value.
Tuple4b
public Tuple4b()
Constructs and initializes a Tuple4b to (0,0,0,0).
Tuple4b
public Tuple4b(byte b1,
byte b2,
byte b3,
byte b4)
Constructs and initializes a Tuple4b from the specified three values.
b1
- the first valueb2
- the second valueb3
- the third valueb4
- the fourth value
Tuple4b
public Tuple4b(Tuple4b t1)
Constructs and initializes a Tuple4b from the specified Tuple4b.
t1
- the Tuple4b containing the initialization x y z w data
Tuple4b
public Tuple4b(t[] )
Constructs and initializes a Tuple4b from input array of length 4.
equals
public boolean equals(Tuple4b t1)
Returns true if all of the data members of Tuple4b t1 are equal to the corresponding
data members in this
t1
- the vector with which the comparison is made.
get
public final void get(Tuple4b t)
Places the value of the x,y,z components of this tuple into the tuple t1.
t
- the tuple into which the values are placed
get
public final void get(t[] )
Places the value of the x,y,z components of this Tuple4b into the array of length 4.
hashCode
public int hashCode()
Returns a hash number based on the data values in this object.
Two different Tuple4b objects with identical data values
(ie, returns true for equals(Tuple4b) ) will return the same hash number.
Two vectors with different data members may return the same hash value,
although this is not likely.
set
public final void set(Tuple4b t1)
Sets the value of the data members of this tuple to the value of the argument tuple t1.
t1
- the source tuple for the memberwise copy
set
public final void set(t[] )
Sets the value of the data members of this tuple to the value of the argument tuple t1.
toString
public String toString()
Returns a string that contains the values of this Tuple4b. The form is (x,y,z,w).
- the String representation