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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector4f()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) floatfloatceil()floatdistance(float float1, float float2, float float3, float float4) static floatdistance(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8) floatfloatdistanceSquared(float float1, float float2, float float3, float float4) static floatdistanceSquared(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8) floatdistanceSquared(Vector4fc vector4fc) div(float float1) div(float float1, float float2, float float3, float float4) floatdot(float float1, float float2, float float3, float float4) floatbooleanequals(float float1, float float2, float float3, float float4) booleanbooleanfloor()floatget(int int1) get(int int1, ByteBuffer byteBuffer) get(int int1, FloatBuffer floatBuffer) get(ByteBuffer byteBuffer) get(FloatBuffer floatBuffer) getToAddress(long long1) inthashCode()hermite(Vector4fc vector4fc, Vector4fc vector4fc2, Vector4fc vector4fc3, float float1, Vector4f vector4f) booleanisFinite()floatlength()static floatlength(float float1, float float2, float float3, float float4) floatstatic floatlengthSquared(float float1, float float2, float float3, float float4) static floatlengthSquared(int int1, int int2, int int3, int int4) intintmul(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) voidreadExternal(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) floatw()voidwriteExternal(ObjectOutput objectOutput) floatx()floaty()floatz()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:
getToAddressin 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:
mulTransposein interfaceVector4fc
-
mulAffine
-
mulAffineTranspose
- Specified by:
mulAffineTransposein interfaceVector4fc
-
mul
-
mul
-
mulProject
- Specified by:
mulProjectin interfaceVector4fc
-
mulProject
-
mulProject
- Specified by:
mulProjectin 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:
rotateAxisin interfaceVector4fc
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquaredin 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:
normalize3in interfaceVector4fc
-
distance
-
distance
public float distance(float float1, float float2, float float3, float float4) -
distanceSquared
- Specified by:
distanceSquaredin interfaceVector4fc
-
distanceSquared
public float distanceSquared(float float1, float float2, float float3, float float4) - Specified by:
distanceSquaredin 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:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
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:
smoothStepin interfaceVector4fc
-
hermite
-
lerp
-
lerp
-
get
- Specified by:
getin interfaceVector4fc- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
maxComponent
public int maxComponent()- Specified by:
maxComponentin interfaceVector4fc
-
minComponent
public int minComponent()- Specified by:
minComponentin interfaceVector4fc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
public boolean isFinite() -
absolute
-
absolute
-