Package org.joml
Class Vector3i
java.lang.Object
org.joml.Vector3i
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector3ic
public class Vector3i extends java.lang.Object implements java.io.Externalizable, Vector3ic
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector3i()
Vector3i(double double1, double double2, double double3, int int1)
Vector3i(float float1, float float2, float float3, int int1)
Vector3i(int int1)
Vector3i(int[] intArray)
Vector3i(int int1, int int2, int int3)
Vector3i(int int1, java.nio.ByteBuffer byteBuffer)
Vector3i(int int1, java.nio.IntBuffer intBuffer)
Vector3i(java.nio.ByteBuffer byteBuffer)
Vector3i(java.nio.IntBuffer intBuffer)
Vector3i(Vector2dc vector2dc, float float1, int int1)
Vector3i(Vector2fc vector2fc, float float1, int int1)
Vector3i(Vector2ic vector2ic, int int1)
Vector3i(Vector3dc vector3dc, int int1)
Vector3i(Vector3fc vector3fc, int int1)
Vector3i(Vector3ic vector3ic)
-
Method Summary
Modifier and Type Method Description Vector3i
absolute()
Vector3i
absolute(Vector3i vector3i)
Vector3i
add(int int1, int int2, int int3)
Vector3i
add(int int1, int int2, int int3, Vector3i vector3i)
Vector3i
add(Vector3ic vector3ic)
Vector3i
add(Vector3ic vector3ic, Vector3i vector3i)
double
distance(int int1, int int2, int int3)
static double
distance(int int1, int int2, int int3, int int4, int int5, int int6)
double
distance(Vector3ic vector3ic)
long
distanceSquared(int int1, int int2, int int3)
static long
distanceSquared(int int1, int int2, int int3, int int4, int int5, int int6)
long
distanceSquared(Vector3ic vector3ic)
Vector3i
div(float float1)
Vector3i
div(float float1, Vector3i vector3i)
Vector3i
div(int int1)
Vector3i
div(int int1, Vector3i vector3i)
boolean
equals(int int1, int int2, int int3)
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)
Vector3ic
getToAddress(long long1)
long
gridDistance(int int1, int int2, int int3)
long
gridDistance(Vector3ic vector3ic)
int
hashCode()
double
length()
static double
length(int int1, int int2, int int3)
long
lengthSquared()
static long
lengthSquared(int int1, int int2, int int3)
Vector3i
max(Vector3ic vector3ic)
Vector3i
max(Vector3ic vector3ic, Vector3i vector3i)
int
maxComponent()
Vector3i
min(Vector3ic vector3ic)
Vector3i
min(Vector3ic vector3ic, Vector3i vector3i)
int
minComponent()
Vector3i
mul(int int1)
Vector3i
mul(int int1, int int2, int int3)
Vector3i
mul(int int1, int int2, int int3, Vector3i vector3i)
Vector3i
mul(int int1, Vector3i vector3i)
Vector3i
mul(Vector3ic vector3ic)
Vector3i
mul(Vector3ic vector3ic, Vector3i vector3i)
Vector3i
negate()
Vector3i
negate(Vector3i vector3i)
void
readExternal(java.io.ObjectInput objectInput)
Vector3i
set(int int1)
Vector3i
set(int[] intArray)
Vector3i
set(int int1, int int2, int int3)
Vector3i
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector3i
set(int int1, java.nio.IntBuffer intBuffer)
Vector3i
set(java.nio.ByteBuffer byteBuffer)
Vector3i
set(java.nio.IntBuffer intBuffer)
Vector3i
set(Vector2ic vector2ic, int int1)
Vector3i
set(Vector3dc vector3dc)
Vector3i
set(Vector3dc vector3dc, int int1)
Vector3i
set(Vector3fc vector3fc, int int1)
Vector3i
set(Vector3ic vector3ic)
Vector3i
setComponent(int int1, int int2)
Vector3i
setFromAddress(long long1)
Vector3i
sub(int int1, int int2, int int3)
Vector3i
sub(int int1, int int2, int int3, Vector3i vector3i)
Vector3i
sub(Vector3ic vector3ic)
Vector3i
sub(Vector3ic vector3ic, Vector3i vector3i)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
void
writeExternal(java.io.ObjectOutput objectOutput)
int
x()
int
y()
int
z()
Vector3i
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
-
-
Constructor Details
-
Vector3i
public Vector3i() -
Vector3i
public Vector3i(int int1) -
Vector3i
public Vector3i(int int1, int int2, int int3) -
Vector3i
-
Vector3i
-
Vector3i
public Vector3i(float float1, float float2, float float3, int int1) -
Vector3i
public Vector3i(double double1, double double2, double double3, int int1) -
Vector3i
-
Vector3i
-
Vector3i
-
Vector3i
-
Vector3i
public Vector3i(int[] intArray) -
Vector3i
public Vector3i(java.nio.ByteBuffer byteBuffer) -
Vector3i
public Vector3i(int int1, java.nio.ByteBuffer byteBuffer) -
Vector3i
public Vector3i(java.nio.IntBuffer intBuffer) -
Vector3i
public Vector3i(int int1, java.nio.IntBuffer intBuffer)
-
-
Method Details
-
x
public int x() -
y
public int y() -
z
public int z() -
set
-
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.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 interfaceVector3ic
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
lengthSquared
public long lengthSquared()- Specified by:
lengthSquared
in interfaceVector3ic
-
lengthSquared
public static long lengthSquared(int int1, int int2, int int3) -
length
public double length() -
length
public static double length(int int1, int int2, int int3) -
distance
-
distance
public double distance(int int1, int int2, int int3) -
gridDistance
- Specified by:
gridDistance
in interfaceVector3ic
-
gridDistance
public long gridDistance(int int1, int int2, int int3)- Specified by:
gridDistance
in interfaceVector3ic
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector3ic
-
distanceSquared
public long distanceSquared(int int1, int int2, int int3)- Specified by:
distanceSquared
in interfaceVector3ic
-
distance
public static double distance(int int1, int int2, int int3, int int4, int int5, int int6) -
distanceSquared
public static long distanceSquared(int int1, int int2, int int3, int int4, int int5, int int6) -
zero
-
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
-
negate
-
negate
-
min
-
min
-
max
-
max
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector3ic
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector3ic
-
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)
-