java.lang.Object
uk.ac.manchester.tornado.api.types.vectors.Byte4
- All Implemented Interfaces:
Serializable,PrimitiveStorage<ByteBuffer>,TornadoVectorsInterface<ByteBuffer>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Byte4static Byte4asBuffer()static Byte4static Byte4static Byte4static Byte4Duplicates this vector.byteget(int index) longbytegetW()bytegetX()bytegetY()bytegetZ()static Byte4static booleanvoidloadFromBuffer(ByteBuffer buffer) static bytestatic Byte4static bytestatic Byte4static Byte4static Byte4static Byte4voidset(int index, byte value) voidvoidsetW(byte value) voidsetX(byte value) voidsetY(byte value) voidsetZ(byte value) intsize()static Byte4static Byte4byte[]toArray()toString()
-
Field Details
-
TYPE
-
-
Constructor Details
-
Byte4
public Byte4() -
Byte4
public Byte4(byte x, byte y, byte z, byte w)
-
-
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) -
getW
public byte getW() -
setW
public void setW(byte value) -
duplicate
Duplicates this vector.- Returns:
Byte4
-
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>
-