All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.vecmath.Tuple3b

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

public abstract class Tuple3b
extends Object
A three byte tuple.


Variable Index

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

Constructor Index

 o Tuple3b()
Constructs and initializes a Tuple3b to (0,0,0).
 o Tuple3b(byte, byte, byte)
Constructs and initializes a Tuple3b from the specified three values.
 o Tuple3b(byte[])
Constructs and initializes a Tuple3b from input array of length 3.
 o Tuple3b(Tuple3b)
Constructs and initializes a Tuple3b from the specified Tuple3b.

Method Index

 o equals(Tuple3b)
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 components of this Tuple3b into the array of length 3.
 o get(Tuple3b)
Places the value of the x,y,z components of this tuple 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 x,y,z, data members of this tuple to the values in the array t of length 3.
 o set(Tuple3b)
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 Tuple3b.

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.

Constructors

 o Tuple3b
 public Tuple3b(byte b1,
                byte b2,
                byte b3)
Constructs and initializes a Tuple3b from the specified three values.

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

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

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

Methods

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

Returns:
a String with the values
Overrides:
toString in class Object
 o get
 public final void get(byte t[])
Places the value of the x,y,z components of this Tuple3b into the array of length 3.

Parameters:
t - array of length 3 into which the component values are copied
 o get
 public final void get(Tuple3b t1)
Places the value of the x,y,z components of this tuple into the tuple t1.

Parameters:
t1 - the tuple into which the values are placed
 o set
 public final void set(Tuple3b t1)
Sets the value of the data members of this tuple to the value of the argument tuple t1.

Parameters:
t1 - The source tuple for the memberwise copy
 o set
 public final void set(byte t[])
Sets the value of the x,y,z, data members of this tuple to the values in the array t of length 3.

Parameters:
t - array of length 3 which is the source for the memberwise copy
 o equals
 public boolean equals(Tuple3b 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 Tuple3b objects with identical data values (ie, returns true for equals(Tuple3b) ) 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