Package org.joml
Class Vector4i
java.lang.Object
org.joml.Vector4i
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector4ic
public class Vector4i extends java.lang.Object implements java.io.Externalizable, Vector4ic
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector4i()
Vector4i(int int1)
Vector4i(int[] intArray)
Vector4i(int int1, int int2, int int3, int int4)
Vector4i(int int1, java.nio.ByteBuffer byteBuffer)
Vector4i(int int1, java.nio.IntBuffer intBuffer)
Vector4i(java.nio.ByteBuffer byteBuffer)
Vector4i(java.nio.IntBuffer intBuffer)
Vector4i(Vector2ic vector2ic, int int1, int int2)
Vector4i(Vector3fc vector3fc, float float1, int int1)
Vector4i(Vector3ic vector3ic, int int1)
Vector4i(Vector4dc vector4dc, int int1)
Vector4i(Vector4fc vector4fc, int int1)
Vector4i(Vector4ic vector4ic)
-
Method Summary
Modifier and Type Method Description Vector4i
absolute()
Vector4i
absolute(Vector4i vector4i)
Vector4i
add(int int1, int int2, int int3, int int4)
Vector4i
add(int int1, int int2, int int3, int int4, Vector4i vector4i)
Vector4i
add(Vector4ic vector4ic)
Vector4i
add(Vector4ic vector4ic, Vector4i vector4i)
double
distance(int int1, int int2, int int3, int int4)
static double
distance(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
double
distance(Vector4ic vector4ic)
int
distanceSquared(int int1, int int2, int int3, int int4)
static long
distanceSquared(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
int
distanceSquared(Vector4ic vector4ic)
Vector4i
div(float float1)
Vector4i
div(float float1, Vector4i vector4i)
Vector4i
div(int int1)
Vector4i
div(int int1, Vector4i vector4i)
Vector4i
div(Vector4ic vector4ic)
Vector4i
div(Vector4ic vector4ic, Vector4i vector4i)
int
dot(Vector4ic vector4ic)
boolean
equals(int int1, int int2, int int3, int int4)
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)
Vector4ic
getToAddress(long long1)
long
gridDistance(int int1, int int2, int int3, int int4)
long
gridDistance(Vector4ic vector4ic)
int
hashCode()
double
length()
static double
length(int int1, int int2, int int3, int int4)
long
lengthSquared()
static long
lengthSquared(int int1, int int2, int int3, int int4)
Vector4i
max(Vector4ic vector4ic)
Vector4i
max(Vector4ic vector4ic, Vector4i vector4i)
int
maxComponent()
Vector4i
min(Vector4ic vector4ic)
Vector4i
min(Vector4ic vector4ic, Vector4i vector4i)
int
minComponent()
Vector4i
mul(int int1)
Vector4i
mul(int int1, Vector4i vector4i)
Vector4i
mul(Vector4ic vector4ic)
Vector4i
mul(Vector4ic vector4ic, Vector4i vector4i)
Vector4i
negate()
Vector4i
negate(Vector4i vector4i)
void
readExternal(java.io.ObjectInput objectInput)
Vector4i
set(int int1)
Vector4i
set(int[] intArray)
Vector4i
set(int int1, int int2, int int3, int int4)
Vector4i
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector4i
set(int int1, java.nio.IntBuffer intBuffer)
Vector4i
set(java.nio.ByteBuffer byteBuffer)
Vector4i
set(java.nio.IntBuffer intBuffer)
Vector4i
set(Vector2ic vector2ic, int int1, int int2)
Vector4i
set(Vector3ic vector3ic, int int1)
Vector4i
set(Vector4dc vector4dc)
Vector4i
set(Vector4dc vector4dc, int int1)
Vector4i
set(Vector4fc vector4fc, int int1)
Vector4i
set(Vector4ic vector4ic)
Vector4i
setComponent(int int1, int int2)
Vector4i
setFromAddress(long long1)
Vector4i
sub(int int1, int int2, int int3, int int4)
Vector4i
sub(int int1, int int2, int int3, int int4, Vector4i vector4i)
Vector4i
sub(Vector4ic vector4ic)
Vector4i
sub(Vector4ic vector4ic, Vector4i vector4i)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
int
w()
void
writeExternal(java.io.ObjectOutput objectOutput)
int
x()
int
y()
int
z()
Vector4i
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 -
z
public int z -
w
public int w
-
-
Constructor Details
-
Vector4i
public Vector4i() -
Vector4i
-
Vector4i
-
Vector4i
-
Vector4i
-
Vector4i
-
Vector4i
-
Vector4i
public Vector4i(int int1) -
Vector4i
public Vector4i(int int1, int int2, int int3, int int4) -
Vector4i
public Vector4i(int[] intArray) -
Vector4i
public Vector4i(java.nio.ByteBuffer byteBuffer) -
Vector4i
public Vector4i(int int1, java.nio.ByteBuffer byteBuffer) -
Vector4i
public Vector4i(java.nio.IntBuffer intBuffer) -
Vector4i
public Vector4i(int int1, java.nio.IntBuffer intBuffer)
-
-
Method Details
-
x
public int x() -
y
public int y() -
z
public int z() -
w
public int w() -
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFromAddress
-
get
public int get(int int1) throws java.lang.IllegalArgumentException -
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector4ic
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector4ic
-
setComponent
- Throws:
java.lang.IllegalArgumentException
-
get
public java.nio.IntBuffer get(java.nio.IntBuffer intBuffer) -
get
public java.nio.IntBuffer get(int int1, java.nio.IntBuffer intBuffer) -
get
public java.nio.ByteBuffer get(java.nio.ByteBuffer byteBuffer) -
get
public java.nio.ByteBuffer get(int int1, java.nio.ByteBuffer byteBuffer) -
getToAddress
- Specified by:
getToAddress
in interfaceVector4ic
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
mul
-
mul
-
div
-
div
-
mul
-
mul
-
div
-
div
-
div
-
div
-
lengthSquared
public long lengthSquared()- Specified by:
lengthSquared
in interfaceVector4ic
-
lengthSquared
public static long lengthSquared(int int1, int int2, int int3, int int4) -
length
public double length() -
length
public static double length(int int1, int int2, int int3, int int4) -
distance
-
distance
public double distance(int int1, int int2, int int3, int int4) -
gridDistance
- Specified by:
gridDistance
in interfaceVector4ic
-
gridDistance
public long gridDistance(int int1, int int2, int int3, int int4)- Specified by:
gridDistance
in interfaceVector4ic
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector4ic
-
distanceSquared
public int distanceSquared(int int1, int int2, int int3, int int4)- Specified by:
distanceSquared
in interfaceVector4ic
-
distance
public static double distance(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8) -
distanceSquared
public static long distanceSquared(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8) -
dot
-
zero
-
negate
-
negate
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat numberFormat) -
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
-
min
-
min
-
max
-
max
-
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, int int3, int int4)
-