Package org.joml
Class Vector4f
java.lang.Object
org.joml.Vector4f
- All Implemented Interfaces:
Externalizable
,Serializable
,Vector4fc
- Direct Known Subclasses:
Vector4
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVector4f()
Vector4f
(float float1) Vector4f
(float[] floatArray) Vector4f
(float float1, float float2, float float3, float float4) Vector4f
(int int1, ByteBuffer byteBuffer) Vector4f
(int int1, FloatBuffer floatBuffer) Vector4f
(ByteBuffer byteBuffer) Vector4f
(FloatBuffer floatBuffer) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
add
(float float1, float float2, float float3, float float4) float
float
ceil()
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
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) div
(float float1) div
(float float1, float float2, float float3, float float4) float
dot
(float float1, float float2, float float3, float float4) float
boolean
equals
(float float1, float float2, float float3, float float4) boolean
boolean
floor()
float
get
(int int1) get
(int int1, ByteBuffer byteBuffer) get
(int int1, FloatBuffer floatBuffer) get
(ByteBuffer byteBuffer) get
(FloatBuffer floatBuffer) getToAddress
(long long1) int
hashCode()
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
static float
lengthSquared
(float float1, float float2, float float3, float float4) static float
lengthSquared
(int int1, int int2, int int3, int int4) int
int
mul
(float float1) mul
(float float1, float float2, float float3, float float4) mul
(Matrix4x3fc matrix4x3fc) mul
(Matrix4x3fc matrix4x3fc, Vector4f vector4f) mulAffineTranspose
(Matrix4fc matrix4fc, Vector4f vector4f) mulProject
(Matrix4fc matrix4fc) mulProject
(Matrix4fc matrix4fc, Vector3f vector3f) mulProject
(Matrix4fc matrix4fc, Vector4f vector4f) mulTranspose
(Matrix4fc matrix4fc) mulTranspose
(Matrix4fc matrix4fc, Vector4f vector4f) negate()
normalize
(float float1) normalize3
(Vector4f vector4f) void
readExternal
(ObjectInput objectInput) rotate
(Quaternionfc quaternionfc) rotate
(Quaternionfc quaternionfc, Vector4f vector4f) rotateAbout
(float float1, float float2, float float3, float float4) rotateAxis
(float float1, float float2, float float3, float float4, Vector4f vector4f) rotateX
(float float1) rotateY
(float float1) rotateZ
(float float1) round()
set
(double double1) set
(double double1, double double2, double double3, double double4) set
(float float1) set
(float[] floatArray) set
(float float1, float float2, float float3) set
(float float1, float float2, float float3, float float4) set
(int int1, ByteBuffer byteBuffer) set
(int int1, FloatBuffer floatBuffer) set
(ByteBuffer byteBuffer) set
(FloatBuffer floatBuffer) setComponent
(int int1, float float1) setFromAddress
(long long1) smoothStep
(Vector4fc vector4fc, float float1, Vector4f vector4f) sub
(float float1, float float2, float float3, float float4) toString()
toString
(NumberFormat numberFormat) float
w()
void
writeExternal
(ObjectOutput objectOutput) float
x()
float
y()
float
z()
zero()
-
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
-
Vector4f
-
Vector4f
-
Vector4f
-
-
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:
IllegalArgumentException
-
get
-
get
-
get
-
get
-
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
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
min
-
min
-
max
-
max
-
hashCode
public int hashCode() -
equals
-
equals
-
equals
public boolean equals(float float1, float float2, float float3, float float4) -
smoothStep
- Specified by:
smoothStep
in interfaceVector4fc
-
hermite
-
lerp
-
lerp
-
get
- Specified by:
get
in interfaceVector4fc
- Throws:
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
-