public abstract class Tuple3b extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
byte |
x
The first value.
|
byte |
y
The second value.
|
byte |
z
The third value.
|
Constructor and Description |
---|
Tuple3b()
Constructs and initializes a Tuple3b to (0,0,0).
|
Tuple3b(byte[] t)
Constructs and initializes a Tuple3b from input array of length 3.
|
Tuple3b(byte b1,
byte b2,
byte b3)
Constructs and initializes a Tuple3b from the specified three values.
|
Tuple3b(Tuple3b t1)
Constructs and initializes a Tuple3b from the specified Tuple3b.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object of the same class as this object.
|
boolean |
equals(Object t1)
Returns true if the Object t1 is of type Tuple3b and all of the
data members of t1 are equal to the corresponding data members in
this Tuple3b.
|
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.
|
void |
get(byte[] t)
Places the value of the x,y,z components of this Tuple3b
into the array of length 3.
|
void |
get(Tuple3b t1)
Places the value of the x,y,z components of this tuple into
the tuple t1.
|
byte |
getX()
Get x, the first value.
|
byte |
getY()
Get y, the second value.
|
byte |
getZ()
Get z, the third value.
|
int |
hashCode()
Returns a hash code value based on the data values in this
object.
|
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.
|
void |
set(Tuple3b t1)
Sets the value of the data members of this tuple to the value
of the argument tuple t1.
|
void |
setX(byte x)
Set x, the first value.
|
void |
setY(byte y)
Set y, the second value.
|
void |
setZ(byte z)
Set z, the third value.
|
String |
toString()
Returns a string that contains the values of this Tuple3b.
|
public byte x
public byte y
public byte z
public Tuple3b(byte b1, byte b2, byte b3)
b1
- the first valueb2
- the second valueb3
- the third valuepublic Tuple3b(byte[] t)
t
- the array of length 3 containing b1 b2 b3 in orderpublic Tuple3b(Tuple3b t1)
t1
- the Tuple3b containing the initialization x y z datapublic Tuple3b()
public String toString()
public final void get(byte[] t)
t
- array of length 3 into which the component values are copiedpublic final void get(Tuple3b t1)
t1
- the tuple into which the values are placedpublic final void set(Tuple3b t1)
t1
- the source tuple for the memberwise copypublic final void set(byte[] t)
t
- array of length 3 which is the source for the memberwise copypublic boolean equals(Tuple3b t1)
t1
- the tuple with which the comparison is madepublic boolean equals(Object t1)
public int hashCode()
public Object clone()
clone
in class Object
OutOfMemoryError
- if there is not enough memory.Cloneable
public final byte getX()
public final void setX(byte x)
x
- the first value to set.public final byte getY()
public final void setY(byte y)
y
- the second value to set.public final byte getZ()
public final void setZ(byte z)
z
- the third value to set.Copyright © 2016–2022 SciJava. All rights reserved.