java.lang.Object
uk.ac.manchester.tornado.api.types.vectors.Int4
- All Implemented Interfaces:
Serializable,PrimitiveStorage<IntBuffer>,TornadoVectorsInterface<IntBuffer>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Int4static Int4asBuffer()asInt2()asInt3()static Int4static Int4static Int4static Int4Duplicates this vector.intget(int index) longintgetW()intgetX()intgetY()intgetZ()static Int4static booleanvoidloadFromBuffer(IntBuffer buffer) static intstatic Int4static intstatic Int4static Int4static Int4static Int4voidset(int index, int value) voidvoidsetW(int value) voidsetX(int value) voidsetY(int value) voidsetZ(int value) intsize()static Int4static Int4int[]toArray()toString()
-
Field Details
-
TYPE
-
-
Constructor Details
-
Int4
public Int4() -
Int4
public Int4(int x, int y, int z, int w)
-
-
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) -
getW
public int getW() -
setW
public void setW(int value) -
duplicate
Duplicates this vector.- Returns:
Int4
-
asInt2
-
asInt3
-
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>
-