Package org.joml
Class Vector2i
java.lang.Object
org.joml.Vector2i
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector2ic
public class Vector2i extends java.lang.Object implements java.io.Externalizable, Vector2ic
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector2i()
Vector2i(double double1, double double2, int int1)
Vector2i(float float1, float float2, int int1)
Vector2i(int int1)
Vector2i(int[] intArray)
Vector2i(int int1, int int2)
Vector2i(int int1, java.nio.ByteBuffer byteBuffer)
Vector2i(int int1, java.nio.IntBuffer intBuffer)
Vector2i(java.nio.ByteBuffer byteBuffer)
Vector2i(java.nio.IntBuffer intBuffer)
Vector2i(Vector2dc vector2dc, int int1)
Vector2i(Vector2fc vector2fc, int int1)
Vector2i(Vector2ic vector2ic)
-
Method Summary
Modifier and Type Method Description Vector2i
absolute()
Vector2i
absolute(Vector2i vector2i)
Vector2i
add(int int1, int int2)
Vector2i
add(int int1, int int2, Vector2i vector2i)
Vector2i
add(Vector2ic vector2ic)
Vector2i
add(Vector2ic vector2ic, Vector2i vector2i)
double
distance(int int1, int int2)
static double
distance(int int1, int int2, int int3, int int4)
double
distance(Vector2ic vector2ic)
long
distanceSquared(int int1, int int2)
static long
distanceSquared(int int1, int int2, int int3, int int4)
long
distanceSquared(Vector2ic vector2ic)
Vector2i
div(float float1)
Vector2i
div(float float1, Vector2i vector2i)
Vector2i
div(int int1)
Vector2i
div(int int1, Vector2i vector2i)
boolean
equals(int int1, int int2)
boolean
equals(java.lang.Object object)
int
get(int int1)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.IntBuffer
get(int int1, java.nio.IntBuffer intBuffer)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.IntBuffer
get(java.nio.IntBuffer intBuffer)
Vector2ic
getToAddress(long long1)
long
gridDistance(int int1, int int2)
long
gridDistance(Vector2ic vector2ic)
int
hashCode()
double
length()
static double
length(int int1, int int2)
long
lengthSquared()
static long
lengthSquared(int int1, int int2)
Vector2i
max(Vector2ic vector2ic)
Vector2i
max(Vector2ic vector2ic, Vector2i vector2i)
int
maxComponent()
Vector2i
min(Vector2ic vector2ic)
Vector2i
min(Vector2ic vector2ic, Vector2i vector2i)
int
minComponent()
Vector2i
mul(int int1)
Vector2i
mul(int int1, int int2)
Vector2i
mul(int int1, int int2, Vector2i vector2i)
Vector2i
mul(int int1, Vector2i vector2i)
Vector2i
mul(Vector2ic vector2ic)
Vector2i
mul(Vector2ic vector2ic, Vector2i vector2i)
Vector2i
negate()
Vector2i
negate(Vector2i vector2i)
void
readExternal(java.io.ObjectInput objectInput)
Vector2i
set(int int1)
Vector2i
set(int[] intArray)
Vector2i
set(int int1, int int2)
Vector2i
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector2i
set(int int1, java.nio.IntBuffer intBuffer)
Vector2i
set(java.nio.ByteBuffer byteBuffer)
Vector2i
set(java.nio.IntBuffer intBuffer)
Vector2i
set(Vector2dc vector2dc)
Vector2i
set(Vector2dc vector2dc, int int1)
Vector2i
set(Vector2fc vector2fc, int int1)
Vector2i
set(Vector2ic vector2ic)
Vector2i
setComponent(int int1, int int2)
Vector2i
setFromAddress(long long1)
Vector2i
sub(int int1, int int2)
Vector2i
sub(int int1, int int2, Vector2i vector2i)
Vector2i
sub(Vector2ic vector2ic)
Vector2i
sub(Vector2ic vector2ic, Vector2i vector2i)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
void
writeExternal(java.io.ObjectOutput objectOutput)
int
x()
int
y()
Vector2i
zero()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public int x -
y
public int y
-
-
Constructor Details
-
Vector2i
public Vector2i() -
Vector2i
public Vector2i(int int1) -
Vector2i
public Vector2i(int int1, int int2) -
Vector2i
public Vector2i(float float1, float float2, int int1) -
Vector2i
public Vector2i(double double1, double double2, int int1) -
Vector2i
-
Vector2i
-
Vector2i
-
Vector2i
public Vector2i(int[] intArray) -
Vector2i
public Vector2i(java.nio.ByteBuffer byteBuffer) -
Vector2i
public Vector2i(int int1, java.nio.ByteBuffer byteBuffer) -
Vector2i
public Vector2i(java.nio.IntBuffer intBuffer) -
Vector2i
public Vector2i(int int1, java.nio.IntBuffer intBuffer)
-
-
Method Details
-
x
public int x() -
y
public int y() -
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFromAddress
-
get
public int get(int int1) throws java.lang.IllegalArgumentException -
setComponent
- Throws:
java.lang.IllegalArgumentException
-
get
public java.nio.ByteBuffer get(java.nio.ByteBuffer byteBuffer) -
get
public java.nio.ByteBuffer get(int int1, java.nio.ByteBuffer byteBuffer) -
get
public java.nio.IntBuffer get(java.nio.IntBuffer intBuffer) -
get
public java.nio.IntBuffer get(int int1, java.nio.IntBuffer intBuffer) -
getToAddress
- Specified by:
getToAddress
in interfaceVector2ic
-
sub
-
sub
-
sub
-
sub
-
lengthSquared
public long lengthSquared()- Specified by:
lengthSquared
in interfaceVector2ic
-
lengthSquared
public static long lengthSquared(int int1, int int2) -
length
public double length() -
length
public static double length(int int1, int int2) -
distance
-
distance
public double distance(int int1, int int2) -
distanceSquared
- Specified by:
distanceSquared
in interfaceVector2ic
-
distanceSquared
public long distanceSquared(int int1, int int2)- Specified by:
distanceSquared
in interfaceVector2ic
-
gridDistance
- Specified by:
gridDistance
in interfaceVector2ic
-
gridDistance
public long gridDistance(int int1, int int2)- Specified by:
gridDistance
in interfaceVector2ic
-
distance
public static double distance(int int1, int int2, int int3, int int4) -
distanceSquared
public static long distanceSquared(int int1, int int2, int int3, int int4) -
add
-
add
-
add
-
add
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
zero
-
writeExternal
public void writeExternal(java.io.ObjectOutput objectOutput) throws java.io.IOException- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput objectInput) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
negate
-
negate
-
min
-
min
-
max
-
max
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector2ic
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector2ic
-
absolute
-
absolute
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(int int1, int int2) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat numberFormat)
-