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(int int1)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(Vector2ic vector2ic, int int1)Vector3i(Vector3ic vector3ic) -
Method Summary
Modifier and Type Method Description Vector3iadd(int int1, int int2, int int3)Vector3iadd(int int1, int int2, int int3, Vector3i vector3i)Vector3iadd(Vector3ic vector3ic)Vector3iadd(Vector3ic vector3ic, Vector3i vector3i)doubledistance(int int1, int int2, int int3)doubledistance(Vector3ic vector3ic)longdistanceSquared(int int1, int int2, int int3)longdistanceSquared(Vector3ic vector3ic)booleanequals(java.lang.Object object)java.nio.ByteBufferget(int int1, java.nio.ByteBuffer byteBuffer)java.nio.IntBufferget(int int1, java.nio.IntBuffer intBuffer)java.nio.ByteBufferget(java.nio.ByteBuffer byteBuffer)java.nio.IntBufferget(java.nio.IntBuffer intBuffer)inthashCode()doublelength()longlengthSquared()Vector3imul(int int1)Vector3imul(int int1, int int2, int int3)Vector3imul(int int1, int int2, int int3, Vector3i vector3i)Vector3imul(int int1, Vector3i vector3i)Vector3imul(Vector3ic vector3ic)Vector3imul(Vector3ic vector3ic, Vector3i vector3i)Vector3inegate()Vector3inegate(Vector3i vector3i)voidreadExternal(java.io.ObjectInput objectInput)Vector3iset(int int1)Vector3iset(int int1, int int2, int int3)Vector3iset(int int1, java.nio.ByteBuffer byteBuffer)Vector3iset(int int1, java.nio.IntBuffer intBuffer)Vector3iset(java.nio.ByteBuffer byteBuffer)Vector3iset(java.nio.IntBuffer intBuffer)Vector3iset(Vector2ic vector2ic, int int1)Vector3iset(Vector3dc vector3dc)Vector3iset(Vector3ic vector3ic)Vector3isetComponent(int int1, int int2)Vector3isub(int int1, int int2, int int3)Vector3isub(int int1, int int2, int int3, Vector3i vector3i)Vector3isub(Vector3ic vector3ic)Vector3isub(Vector3ic vector3ic, Vector3i vector3i)Vector3ictoImmutable()java.lang.StringtoString()java.lang.StringtoString(java.text.NumberFormat numberFormat)voidwriteExternal(java.io.ObjectOutput objectOutput)intx()inty()intz()Vector3izero()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(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
-
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) -
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
lengthSquared
public long lengthSquared()- Specified by:
lengthSquaredin interfaceVector3ic
-
length
public double length() -
distance
-
distance
public double distance(int int1, int int2, int int3) -
distanceSquared
- Specified by:
distanceSquaredin interfaceVector3ic
-
distanceSquared
public long distanceSquared(int int1, int int2, int int3)- Specified by:
distanceSquaredin interfaceVector3ic
-
zero
-
toString
public java.lang.String toString()- Overrides:
toStringin 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:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput objectInput) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
negate
-
negate
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equalsin classjava.lang.Object
-
toImmutable
-