Package org.joml
Class Vector4f
java.lang.Object
org.joml.Vector4f
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector4fc
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 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(Vector3fc vector3fc, float float1)
Vector4f(Vector4fc vector4fc)
-
Method Summary
Modifier and Type Method Description 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)
float
distance(float float1, float float2, float float3, float float4)
float
distance(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(java.lang.Object object)
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)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(int int1, java.nio.FloatBuffer floatBuffer)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
int
hashCode()
Vector4f
hermite(Vector4fc vector4fc, Vector4fc vector4fc2, Vector4fc vector4fc3, float float1, Vector4f vector4f)
float
length()
float
lengthSquared()
Vector4f
lerp(Vector4fc vector4fc, float float1)
Vector4f
lerp(Vector4fc vector4fc, float float1, Vector4f vector4f)
Vector4f
max(Vector4fc vector4fc)
Vector4f
min(Vector4fc vector4fc)
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
mulProject(Matrix4fc matrix4fc)
Vector4f
mulProject(Matrix4fc matrix4fc, Vector4f vector4f)
Vector4f
negate()
Vector4f
negate(Vector4f vector4f)
Vector4f
normalize()
Vector4f
normalize(Vector4f vector4f)
Vector4f
normalize3()
void
readExternal(java.io.ObjectInput objectInput)
Vector4f
rotate(Quaternionfc quaternionfc)
Vector4f
rotate(Quaternionfc quaternionfc, Vector4f vector4f)
Vector4f
set(float float1)
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(Vector3fc vector3fc, float float1)
Vector4f
set(Vector4dc vector4dc)
Vector4f
set(Vector4fc vector4fc)
Vector4f
setComponent(int int1, float float1)
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)
Vector4fc
toImmutable()
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
public Vector4f(float float1) -
Vector4f
public Vector4f(float float1, float float2, float float3, float float4) -
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
-
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) -
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mul
-
mul
-
div
-
div
-
mul
-
mul
-
mul
-
mul
-
mulProject
- Specified by:
mulProject
in interfaceVector4fc
-
mulProject
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
rotate
-
rotate
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceVector4fc
-
length
public float length() -
normalize
-
normalize
-
normalize3
-
distance
-
distance
public float distance(float float1, float float2, float float3, float float4) -
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
-
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
-
smoothStep
- Specified by:
smoothStep
in interfaceVector4fc
-
hermite
-
lerp
-
lerp
-
toImmutable
-