Package org.joml
Class Vector3f
java.lang.Object
org.joml.Vector3f
- All Implemented Interfaces:
Externalizable,Serializable,Vector3fc
- Direct Known Subclasses:
Vector3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector3f()Vector3f(float float1) Vector3f(float[] floatArray) Vector3f(float float1, float float2, float float3) Vector3f(int int1, ByteBuffer byteBuffer) Vector3f(int int1, FloatBuffer floatBuffer) Vector3f(ByteBuffer byteBuffer) Vector3f(FloatBuffer floatBuffer) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()add(float float1, float float2, float float3) floatfloatfloatangleSigned(float float1, float float2, float float3, float float4, float float5, float float6) floatangleSigned(Vector3fc vector3fc, Vector3fc vector3fc2) ceil()cross(float float1, float float2, float float3) floatdistance(float float1, float float2, float float3) static floatdistance(float float1, float float2, float float3, float float4, float float5, float float6) floatfloatdistanceSquared(float float1, float float2, float float3) static floatdistanceSquared(float float1, float float2, float float3, float float4, float float5, float float6) floatdistanceSquared(Vector3fc vector3fc) div(float float1) div(float float1, float float2, float float3) floatdot(float float1, float float2, float float3) floatbooleanequals(float float1, float float2, float float3) booleanbooleanfloor()floatget(int int1) get(int int1, ByteBuffer byteBuffer) get(int int1, FloatBuffer floatBuffer) get(ByteBuffer byteBuffer) get(FloatBuffer floatBuffer) getToAddress(long long1) half(float float1, float float2, float float3) inthashCode()hermite(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3fc vector3fc3, float float1, Vector3f vector3f) booleanisFinite()floatlength()static floatlength(float float1, float float2, float float3) floatstatic floatlengthSquared(float float1, float float2, float float3) intintmul(float float1) mul(float float1, float float2, float float3) mul(Matrix3x2fc matrix3x2fc) mul(Matrix3x2fc matrix3x2fc, Vector3f vector3f) mulDirection(Matrix4dc matrix4dc) mulDirection(Matrix4dc matrix4dc, Vector3f vector3f) mulDirection(Matrix4fc matrix4fc) mulDirection(Matrix4fc matrix4fc, Vector3f vector3f) mulDirection(Matrix4x3fc matrix4x3fc) mulDirection(Matrix4x3fc matrix4x3fc, Vector3f vector3f) mulPosition(Matrix4fc matrix4fc) mulPosition(Matrix4fc matrix4fc, Vector3f vector3f) mulPosition(Matrix4x3fc matrix4x3fc) mulPosition(Matrix4x3fc matrix4x3fc, Vector3f vector3f) floatmulPositionW(Matrix4fc matrix4fc) floatmulPositionW(Matrix4fc matrix4fc, Vector3f vector3f) mulProject(Matrix4fc matrix4fc) mulProject(Matrix4fc matrix4fc, float float1, Vector3f vector3f) mulProject(Matrix4fc matrix4fc, Vector3f vector3f) mulTranspose(Matrix3fc matrix3fc) mulTranspose(Matrix3fc matrix3fc, Vector3f vector3f) mulTransposeDirection(Matrix4fc matrix4fc) mulTransposeDirection(Matrix4fc matrix4fc, Vector3f vector3f) mulTransposePosition(Matrix4fc matrix4fc) mulTransposePosition(Matrix4fc matrix4fc, Vector3f vector3f) negate()normalize(float float1) orthogonalize(Vector3fc vector3fc) orthogonalize(Vector3fc vector3fc, Vector3f vector3f) orthogonalizeUnit(Vector3fc vector3fc) orthogonalizeUnit(Vector3fc vector3fc, Vector3f vector3f) voidreadExternal(ObjectInput objectInput) reflect(float float1, float float2, float float3) rotate(Quaternionfc quaternionfc) rotate(Quaternionfc quaternionfc, Vector3f vector3f) rotateAxis(float float1, float float2, float float3, float float4) rotateAxis(float float1, float float2, float float3, float float4, Vector3f vector3f) rotateX(float float1) rotateY(float float1) rotateZ(float float1) rotationTo(float float1, float float2, float float3, Quaternionf quaternionf) rotationTo(Vector3fc vector3fc, Quaternionf quaternionf) round()set(double double1) set(double double1, double double2, double double3) set(float float1) set(float[] floatArray) set(float float1, float float2, float float3) 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(Vector3fc vector3fc, float float1, Vector3f vector3f) sub(float float1, float float2, float float3) toString()toString(NumberFormat numberFormat) voidwriteExternal(ObjectOutput objectOutput) floatx()floaty()floatz()zero()
-
Field Details
-
x
public float x -
y
public float y -
z
public float z
-
-
Constructor Details
-
Vector3f
public Vector3f() -
Vector3f
public Vector3f(float float1) -
Vector3f
public Vector3f(float float1, float float2, float float3) -
Vector3f
-
Vector3f
-
Vector3f
-
Vector3f
-
Vector3f
public Vector3f(float[] floatArray) -
Vector3f
-
Vector3f
-
Vector3f
-
Vector3f
-
-
Method Details
-
x
public float x() -
y
public float y() -
z
public float z() -
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 interfaceVector3fc
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mulAdd
-
mulAdd
-
mulAdd
-
mulAdd
-
mul
-
mul
-
div
-
div
-
mulProject
- Specified by:
mulProjectin interfaceVector3fc
-
mulProject
- Specified by:
mulProjectin interfaceVector3fc
-
mulProject
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTransposein interfaceVector3fc
-
mulPosition
-
mulPosition
-
mulPosition
- Specified by:
mulPositionin interfaceVector3fc
-
mulPosition
- Specified by:
mulPositionin interfaceVector3fc
-
mulTransposePosition
-
mulTransposePosition
- Specified by:
mulTransposePositionin interfaceVector3fc
-
mulPositionW
-
mulPositionW
- Specified by:
mulPositionWin interfaceVector3fc
-
mulDirection
-
mulDirection
-
mulDirection
-
mulDirection
- Specified by:
mulDirectionin interfaceVector3fc
-
mulDirection
- Specified by:
mulDirectionin interfaceVector3fc
-
mulDirection
- Specified by:
mulDirectionin interfaceVector3fc
-
mulTransposeDirection
-
mulTransposeDirection
- Specified by:
mulTransposeDirectionin interfaceVector3fc
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
rotate
-
rotate
-
rotationTo
- Specified by:
rotationToin interfaceVector3fc
-
rotationTo
- Specified by:
rotationToin interfaceVector3fc
-
rotateAxis
-
rotateAxis
public Vector3f rotateAxis(float float1, float float2, float float3, float float4, Vector3f vector3f) - Specified by:
rotateAxisin interfaceVector3fc
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquaredin interfaceVector3fc
-
lengthSquared
public static float lengthSquared(float float1, float float2, float float3) -
length
public float length() -
length
public static float length(float float1, float float2, float float3) -
normalize
-
normalize
-
normalize
-
normalize
-
cross
-
cross
-
cross
-
cross
-
distance
-
distance
public float distance(float float1, float float2, float float3) -
distanceSquared
- Specified by:
distanceSquaredin interfaceVector3fc
-
distanceSquared
public float distanceSquared(float float1, float float2, float float3) - Specified by:
distanceSquaredin interfaceVector3fc
-
distance
public static float distance(float float1, float float2, float float3, float float4, float float5, float float6) -
distanceSquared
public static float distanceSquared(float float1, float float2, float float3, float float4, float float5, float float6) -
dot
-
dot
public float dot(float float1, float float2, float float3) -
angleCos
-
angle
-
angleSigned
- Specified by:
angleSignedin interfaceVector3fc
-
angleSigned
public float angleSigned(float float1, float float2, float float3, float float4, float float5, float float6) - Specified by:
angleSignedin interfaceVector3fc
-
min
-
min
-
max
-
max
-
zero
-
toString
-
toString
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
negate
-
negate
-
absolute
-
absolute
-
hashCode
public int hashCode() -
equals
-
equals
-
equals
public boolean equals(float float1, float float2, float float3) -
reflect
-
reflect
-
reflect
-
reflect
-
half
-
half
-
half
-
half
-
smoothStep
- Specified by:
smoothStepin interfaceVector3fc
-
hermite
-
lerp
-
lerp
-
get
- Specified by:
getin interfaceVector3fc- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
maxComponent
public int maxComponent()- Specified by:
maxComponentin interfaceVector3fc
-
minComponent
public int minComponent()- Specified by:
minComponentin interfaceVector3fc
-
orthogonalize
- Specified by:
orthogonalizein interfaceVector3fc
-
orthogonalize
-
orthogonalizeUnit
- Specified by:
orthogonalizeUnitin interfaceVector3fc
-
orthogonalizeUnit
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
public boolean isFinite()
-