All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.vecmath.Tuple4b

java.lang.Object
   |
   +----java.vecmath.Tuple4b

public abstract class Tuple4b
extends Object
A four byte tuple.


Variable Index

 o w
The fourth value.
 o x
The first value.
 o y
The second value.
 o z
The third value.

Constructor Index

 o Tuple4b()
Constructs and initializes a Vec4b to (0,0,0,0).
 o Tuple4b(byte, byte, byte, byte)
Constructs and initializes a Tuple4b from the specified four values.
 o Tuple4b(byte[])
Constructs and initializes a Tuple4b from the array of length 4.
 o Tuple4b(Tuple4b)
Constructs and initializes a Tuple4b from the specified Tuple4b.

Method Index

 o equals(Tuple4b)
Returns true if all of the data members of tuple t1 are equal to the corresponding data members in this tuple.
 o get(byte[])
Places the value of the x,y,z,w components of this Tuple4b into the array of length 4.
 o get(Tuple4b)
Places the value of the x,y,z,w components of this Tuple4b into the tuple t1.
 o hashCode()
Returns a hash number based on the data values in this object.
 o set(byte[])
Sets the value of the data members of this tuple to the value of the array b of length 4.
 o set(Tuple4b)
Sets the value of the data members of this tuple to the value of the argument tuple t1.
 o toString()
Returns a string that contains the values of this Tuple4b.

Variables

 o x
 public byte x
The first value.

 o y
 public byte y
The second value.

 o z
 public byte z
The third value.

 o w
 public byte w
The fourth value.

Constructors

 o Tuple4b
 public Tuple4b(byte b1,
                byte b2,
                byte b3,
                byte b4)
Constructs and initializes a Tuple4b from the specified four values.

Parameters:
b1 - the first value
b2 - the second value
b3 - the third value
b4 - the fourth value
 o Tuple4b
 public Tuple4b(byte t[])
Constructs and initializes a Tuple4b from the array of length 4.

Parameters:
t - the array of length 4 containing b1 b2 b3 b4 in order
 o Tuple4b
 public Tuple4b(Tuple4b t1)
Constructs and initializes a Tuple4b from the specified Tuple4b.

Parameters:
t1 - the Tuple4b containing the initialization x y z w data
 o Tuple4b
 public Tuple4b()
Constructs and initializes a Vec4b to (0,0,0,0).

Methods

 o toString
 public String toString()
Returns a string that contains the values of this Tuple4b.

Returns:
the String representation
Overrides:
toString in class Object
 o get
 public final void get(byte b[])
Places the value of the x,y,z,w components of this Tuple4b into the array of length 4.

Parameters:
b - array of length 4 into which the values are placed
 o get
 public final void get(Tuple4b t1)
Places the value of the x,y,z,w components of this Tuple4b into the tuple t1.

Parameters:
t1 - tuple into which the values are placed
 o 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.

Parameters:
t1 - the source tuple
 o set
 public final void set(byte b[])
Sets the value of the data members of this tuple to the value of the array b of length 4.

Parameters:
b - The source array of length 4.
 o equals
 public boolean equals(Tuple4b t1)
Returns true if all of the data members of tuple t1 are equal to the corresponding data members in this tuple.

Parameters:
t1 - The tuple with which the comparison is made.
 o 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.

Returns:
the integer hash value
Overrides:
hashCode in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index