java.lang.Object
uk.ac.manchester.tornado.api.types.vectors.Byte3
- All Implemented Interfaces:
Serializable,PrimitiveStorage<ByteBuffer>,TornadoVectorsInterface<ByteBuffer>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Byte3static Byte3asBuffer()static Byte3static Byte3static Byte3static Byte3Duplicates this vector.byteget(int index) longbytegetX()bytegetY()bytegetZ()static Byte3static booleanvoidloadFromBuffer(ByteBuffer buffer) static bytestatic Byte3static bytestatic Byte3static Byte3static Byte3static Byte3voidset(int index, byte value) voidvoidsetX(byte value) voidsetY(byte value) voidsetZ(byte value) intsize()static Byte3static Byte3byte[]toArray()toString()
-
Field Details
-
TYPE
-
-
Constructor Details
-
Byte3
public Byte3() -
Byte3
public Byte3(byte x, byte y, byte z)
-
-
Method Details
-
add
-
sub
-
div
-
mult
-
min
-
max
-
add
-
sub
-
mult
-
div
-
inc
-
dec
-
scale
-
clamp
-
min
-
max
-
isEqual
-
set
-
get
public byte get(int index) -
set
public void set(int index, byte value) -
getX
public byte getX() -
setX
public void setX(byte value) -
getY
public byte getY() -
setY
public void setY(byte value) -
getZ
public byte getZ() -
setZ
public void setZ(byte value) -
duplicate
Duplicates this vector.- Returns:
-
toString
-
toString
-
loadFromBuffer
- Specified by:
loadFromBufferin interfacePrimitiveStorage<ByteBuffer>
-
asBuffer
- Specified by:
asBufferin interfacePrimitiveStorage<ByteBuffer>
-
size
public int size()- Specified by:
sizein interfacePrimitiveStorage<ByteBuffer>
-
toArray
public byte[] toArray() -
getNumBytes
public long getNumBytes()- Specified by:
getNumBytesin interfaceTornadoVectorsInterface<ByteBuffer>
-