java.lang.Object
uk.ac.manchester.tornado.api.types.vectors.Int2
- All Implemented Interfaces:
Serializable,PrimitiveStorage<IntBuffer>,TornadoVectorsInterface<IntBuffer>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Int2static Int2* Operations on Int2 vectors.asBuffer()static Int2static Int2static Int2static Int2static intDuplicates this vector.intget(int index) longintgetS0()intgetS1()intgetX()intgetY()static Int2static booleanvoidloadFromBuffer(IntBuffer buffer) static intstatic Int2static intstatic Int2static Int2static Int2static Int2static Int2scaleByInverse(Int2 a, int value) voidset(int index, int value) voidvoidsetX(int value) voidsetY(int value) intsize()static Int2static Int2toString()
-
Field Details
-
TYPE
-
-
Constructor Details
-
Int2
public Int2() -
Int2
public Int2(int x, int y)
-
-
Method Details
-
add
* Operations on Int2 vectors. -
sub
-
div
-
mult
-
min
-
max
-
add
-
sub
-
mult
-
div
-
inc
-
dec
-
scaleByInverse
-
scale
-
clamp
-
min
-
max
-
dot
-
isEqual
-
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) -
getS0
public int getS0() -
getS1
public int getS1() -
duplicate
Duplicates this vector.- Returns:
Int2
-
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>
-