java.lang.Object
uk.ac.manchester.tornado.api.types.vectors.Int3
- All Implemented Interfaces:
Serializable,PrimitiveStorage<IntBuffer>,TornadoVectorsInterface<IntBuffer>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Int3static Int3asBuffer()asInt2()static Int3static Int3static Int3static Int3Duplicates this vector.intget(int index) longintgetX()intgetY()intgetZ()static Int3static booleanvoidloadFromBuffer(IntBuffer buffer) static intstatic Int3static intstatic Int3static Int3static Int3static Int3voidset(int index, int value) voidvoidsetX(int value) voidsetY(int value) voidsetZ(int value) intsize()static Int3static Int3int[]toArray()toString()
-
Field Details
-
TYPE
-
-
Constructor Details
-
Int3
public Int3() -
Int3
public Int3(int x, int y, int z)
-
-
Method Details
-
add
-
sub
-
div
-
mult
-
min
-
max
-
add
-
sub
-
mult
-
div
-
inc
-
dec
-
scale
-
clamp
-
min
-
max
-
isEqual
-
toArray
public int[] toArray() -
get
public int get(int index) -
set
public void set(int index, int value) -
set
-
getX
public int getX() -
setX
public void setX(int value) -
getY
public int getY() -
setY
public void setY(int value) -
getZ
public int getZ() -
setZ
public void setZ(int value) -
duplicate
Duplicates this vector.- Returns:
Int3
-
asInt2
-
toString
-
toString
-
loadFromBuffer
- Specified by:
loadFromBufferin interfacePrimitiveStorage<IntBuffer>
-
asBuffer
- Specified by:
asBufferin interfacePrimitiveStorage<IntBuffer>
-
size
public int size()- Specified by:
sizein interfacePrimitiveStorage<IntBuffer>
-
getNumBytes
public long getNumBytes()- Specified by:
getNumBytesin interfaceTornadoVectorsInterface<IntBuffer>
-