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 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(Vector3ic vector3ic, int int1)
Vector4i(Vector4ic vector4ic)
-
Method Summary
Modifier and Type Method Description 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)
double
distance(Vector4ic vector4ic)
int
distanceSquared(int int1, int int2, int int3, int int4)
int
distanceSquared(Vector4ic vector4ic)
Vector4i
div(float float1, Vector4i vector4i)
Vector4i
div(int int1)
Vector4i
div(Vector4ic vector4ic)
Vector4i
div(Vector4ic vector4ic, Vector4i vector4i)
int
dot(Vector4ic vector4ic)
boolean
equals(java.lang.Object object)
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)
int
hashCode()
double
length()
long
lengthSquared()
Vector4i
max(Vector4ic vector4ic)
Vector4i
min(Vector4ic vector4ic)
Vector4i
mul(float float1)
Vector4i
mul(float float1, 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 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(Vector4ic vector4ic)
Vector4i
setComponent(int int1, int int2)
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)
Vector4ic
toImmutable()
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
public Vector4i(int int1) -
Vector4i
public Vector4i(int int1, int int2, int int3, int int4) -
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
-
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
-
div
-
div
-
mul
-
mul
-
div
-
div
-
lengthSquared
public long lengthSquared()- Specified by:
lengthSquared
in interfaceVector4ic
-
length
public double length() -
distance
-
distance
public double distance(int int1, int int2, int int3, int int4) -
distanceSquared
- Specified by:
distanceSquared
in interfaceVector4ic
-
distanceSquared
public int distanceSquared(int int1, int int2, int int3, int int4)- Specified by:
distanceSquared
in interfaceVector4ic
-
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
-
max
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
toImmutable
-