Package org.joml
Class Vector4f
java.lang.Object
org.joml.Vector4f
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector4fc
- Direct Known Subclasses:
Vector4
public class Vector4f extends java.lang.Object implements java.io.Externalizable, Vector4fc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector4f()
Vector4f(float float1)
Vector4f(float[] floatArray)
Vector4f(float float1, float float2, float float3, float float4)
Vector4f(int int1, java.nio.ByteBuffer byteBuffer)
Vector4f(int int1, java.nio.FloatBuffer floatBuffer)
Vector4f(java.nio.ByteBuffer byteBuffer)
Vector4f(java.nio.FloatBuffer floatBuffer)
Vector4f(Vector2fc vector2fc, float float1, float float2)
Vector4f(Vector2ic vector2ic, float float1, float float2)
Vector4f(Vector3fc vector3fc, float float1)
Vector4f(Vector3ic vector3ic, float float1)
Vector4f(Vector4fc vector4fc)
Vector4f(Vector4ic vector4ic)
-
Method Summary
Modifier and Type Method Description Vector4f
absolute()
Vector4f
absolute(Vector4f vector4f)
Vector4f
add(float float1, float float2, float float3, float float4)
Vector4f
add(float float1, float float2, float float3, float float4, Vector4f vector4f)
Vector4f
add(Vector4fc vector4fc)
Vector4f
add(Vector4fc vector4fc, Vector4f vector4f)
float
angle(Vector4fc vector4fc)
float
angleCos(Vector4fc vector4fc)
Vector4f
ceil()
Vector4f
ceil(Vector4f vector4f)
float
distance(float float1, float float2, float float3, float float4)
static float
distance(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8)
float
distance(Vector4fc vector4fc)
float
distanceSquared(float float1, float float2, float float3, float float4)
static float
distanceSquared(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8)
float
distanceSquared(Vector4fc vector4fc)
Vector4f
div(float float1)
Vector4f
div(float float1, float float2, float float3, float float4)
Vector4f
div(float float1, float float2, float float3, float float4, Vector4f vector4f)
Vector4f
div(float float1, Vector4f vector4f)
Vector4f
div(Vector4fc vector4fc)
Vector4f
div(Vector4fc vector4fc, Vector4f vector4f)
float
dot(float float1, float float2, float float3, float float4)
float
dot(Vector4fc vector4fc)
boolean
equals(float float1, float float2, float float3, float float4)
boolean
equals(java.lang.Object object)
boolean
equals(Vector4fc vector4fc, float float1)
Vector4f
floor()
Vector4f
floor(Vector4f vector4f)
Vector4f
fma(float float1, Vector4fc vector4fc)
Vector4f
fma(float float1, Vector4fc vector4fc, Vector4f vector4f)
Vector4f
fma(Vector4fc vector4fc, Vector4fc vector4fc2)
Vector4f
fma(Vector4fc vector4fc, Vector4fc vector4fc2, Vector4f vector4f)
float
get(int int1)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(int int1, java.nio.FloatBuffer floatBuffer)
Vector4i
get(int int1, Vector4i vector4i)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
Vector4d
get(Vector4d vector4d)
Vector4f
get(Vector4f vector4f)
Vector4fc
getToAddress(long long1)
int
hashCode()
Vector4f
hermite(Vector4fc vector4fc, Vector4fc vector4fc2, Vector4fc vector4fc3, float float1, Vector4f vector4f)
boolean
isFinite()
float
length()
static float
length(float float1, float float2, float float3, float float4)
float
lengthSquared()
static float
lengthSquared(float float1, float float2, float float3, float float4)
static float
lengthSquared(int int1, int int2, int int3, int int4)
Vector4f
lerp(Vector4fc vector4fc, float float1)
Vector4f
lerp(Vector4fc vector4fc, float float1, Vector4f vector4f)
Vector4f
max(Vector4fc vector4fc)
Vector4f
max(Vector4fc vector4fc, Vector4f vector4f)
int
maxComponent()
Vector4f
min(Vector4fc vector4fc)
Vector4f
min(Vector4fc vector4fc, Vector4f vector4f)
int
minComponent()
Vector4f
mul(float float1)
Vector4f
mul(float float1, float float2, float float3, float float4)
Vector4f
mul(float float1, float float2, float float3, float float4, Vector4f vector4f)
Vector4f
mul(float float1, Vector4f vector4f)
Vector4f
mul(Matrix4fc matrix4fc)
Vector4f
mul(Matrix4fc matrix4fc, Vector4f vector4f)
Vector4f
mul(Matrix4x3fc matrix4x3fc)
Vector4f
mul(Matrix4x3fc matrix4x3fc, Vector4f vector4f)
Vector4f
mul(Vector4fc vector4fc)
Vector4f
mul(Vector4fc vector4fc, Vector4f vector4f)
Vector4f
mulAdd(float float1, Vector4fc vector4fc)
Vector4f
mulAdd(float float1, Vector4fc vector4fc, Vector4f vector4f)
Vector4f
mulAdd(Vector4fc vector4fc, Vector4fc vector4fc2)
Vector4f
mulAdd(Vector4fc vector4fc, Vector4fc vector4fc2, Vector4f vector4f)
Vector4f
mulAffine(Matrix4fc matrix4fc, Vector4f vector4f)
Vector4f
mulAffineTranspose(Matrix4fc matrix4fc, Vector4f vector4f)
Vector4f
mulProject(Matrix4fc matrix4fc)
Vector3f
mulProject(Matrix4fc matrix4fc, Vector3f vector3f)
Vector4f
mulProject(Matrix4fc matrix4fc, Vector4f vector4f)
Vector4f
mulTranspose(Matrix4fc matrix4fc)
Vector4f
mulTranspose(Matrix4fc matrix4fc, Vector4f vector4f)
Vector4f
negate()
Vector4f
negate(Vector4f vector4f)
Vector4f
normalize()
Vector4f
normalize(float float1)
Vector4f
normalize(float float1, Vector4f vector4f)
Vector4f
normalize(Vector4f vector4f)
Vector4f
normalize3()
Vector4f
normalize3(Vector4f vector4f)
void
readExternal(java.io.ObjectInput objectInput)
Vector4f
rotate(Quaternionfc quaternionfc)
Vector4f
rotate(Quaternionfc quaternionfc, Vector4f vector4f)
Vector4f
rotateAbout(float float1, float float2, float float3, float float4)
Vector4f
rotateAxis(float float1, float float2, float float3, float float4, Vector4f vector4f)
Vector4f
rotateX(float float1)
Vector4f
rotateX(float float1, Vector4f vector4f)
Vector4f
rotateY(float float1)
Vector4f
rotateY(float float1, Vector4f vector4f)
Vector4f
rotateZ(float float1)
Vector4f
rotateZ(float float1, Vector4f vector4f)
Vector4f
round()
Vector4f
round(Vector4f vector4f)
Vector4f
set(double double1)
Vector4f
set(double double1, double double2, double double3, double double4)
Vector4f
set(float float1)
Vector4f
set(float[] floatArray)
Vector4f
set(float float1, float float2, float float3)
Vector4f
set(float float1, float float2, float float3, float float4)
Vector4f
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector4f
set(int int1, java.nio.FloatBuffer floatBuffer)
Vector4f
set(java.nio.ByteBuffer byteBuffer)
Vector4f
set(java.nio.FloatBuffer floatBuffer)
Vector4f
set(Vector2fc vector2fc, float float1, float float2)
Vector4f
set(Vector2ic vector2ic, float float1, float float2)
Vector4f
set(Vector3fc vector3fc, float float1)
Vector4f
set(Vector3ic vector3ic, float float1)
Vector4f
set(Vector4dc vector4dc)
Vector4f
set(Vector4fc vector4fc)
Vector4f
set(Vector4ic vector4ic)
Vector4f
setComponent(int int1, float float1)
Vector4f
setFromAddress(long long1)
Vector4f
smoothStep(Vector4fc vector4fc, float float1, Vector4f vector4f)
Vector4f
sub(float float1, float float2, float float3, float float4)
Vector4f
sub(float float1, float float2, float float3, float float4, Vector4f vector4f)
Vector4f
sub(Vector4fc vector4fc)
Vector4f
sub(Vector4fc vector4fc, Vector4f vector4f)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
float
w()
void
writeExternal(java.io.ObjectOutput objectOutput)
float
x()
float
y()
float
z()
Vector4f
zero()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public float x -
y
public float y -
z
public float z -
w
public float w
-
-
Constructor Details
-
Vector4f
public Vector4f() -
Vector4f
-
Vector4f
-
Vector4f
-
Vector4f
-
Vector4f
-
Vector4f
-
Vector4f
public Vector4f(float float1) -
Vector4f
public Vector4f(float float1, float float2, float float3, float float4) -
Vector4f
public Vector4f(float[] floatArray) -
Vector4f
public Vector4f(java.nio.ByteBuffer byteBuffer) -
Vector4f
public Vector4f(int int1, java.nio.ByteBuffer byteBuffer) -
Vector4f
public Vector4f(java.nio.FloatBuffer floatBuffer) -
Vector4f
public Vector4f(int int1, java.nio.FloatBuffer floatBuffer)
-
-
Method Details
-
x
public float x() -
y
public float y() -
z
public float z() -
w
public float w() -
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFromAddress
-
setComponent
- Throws:
java.lang.IllegalArgumentException
-
get
public java.nio.FloatBuffer get(java.nio.FloatBuffer floatBuffer) -
get
public java.nio.FloatBuffer get(int int1, java.nio.FloatBuffer floatBuffer) -
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 interfaceVector4fc
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mulAdd
-
mulAdd
-
mulAdd
-
mulAdd
-
mul
-
mul
-
div
-
div
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector4fc
-
mulAffine
-
mulAffineTranspose
- Specified by:
mulAffineTranspose
in interfaceVector4fc
-
mul
-
mul
-
mulProject
- Specified by:
mulProject
in interfaceVector4fc
-
mulProject
-
mulProject
- Specified by:
mulProject
in interfaceVector4fc
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
rotate
-
rotate
-
rotateAbout
-
rotateAxis
public Vector4f rotateAxis(float float1, float float2, float float3, float float4, Vector4f vector4f)- Specified by:
rotateAxis
in interfaceVector4fc
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceVector4fc
-
lengthSquared
public static float lengthSquared(float float1, float float2, float float3, float float4) -
lengthSquared
public static float lengthSquared(int int1, int int2, int int3, int int4) -
length
public float length() -
length
public static float length(float float1, float float2, float float3, float float4) -
normalize
-
normalize
-
normalize
-
normalize
-
normalize3
-
normalize3
- Specified by:
normalize3
in interfaceVector4fc
-
distance
-
distance
public float distance(float float1, float float2, float float3, float float4) -
distanceSquared
- Specified by:
distanceSquared
in interfaceVector4fc
-
distanceSquared
public float distanceSquared(float float1, float float2, float float3, float float4)- Specified by:
distanceSquared
in interfaceVector4fc
-
distance
public static float distance(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8) -
distanceSquared
public static float distanceSquared(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8) -
dot
-
dot
public float dot(float float1, float float2, float float3, float float4) -
angleCos
-
angle
-
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
-
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
-
equals
public boolean equals(float float1, float float2, float float3, float float4) -
smoothStep
- Specified by:
smoothStep
in interfaceVector4fc
-
hermite
-
lerp
-
lerp
-
get
public float get(int int1) throws java.lang.IllegalArgumentException -
get
-
get
-
get
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector4fc
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector4fc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
public boolean isFinite() -
absolute
-
absolute
-