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
-
Constructor Summary
ConstructorDescriptionVector3f()
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) float
float
float
angleSigned
(float float1, float float2, float float3, float float4, float float5, float float6) float
angleSigned
(Vector3fc vector3fc, Vector3fc vector3fc2) ceil()
cross
(float float1, float float2, float float3) float
distance
(float float1, float float2, float float3) static float
distance
(float float1, float float2, float float3, float float4, float float5, float float6) float
float
distanceSquared
(float float1, float float2, float float3) static float
distanceSquared
(float float1, float float2, float float3, float float4, float float5, float float6) float
distanceSquared
(Vector3fc vector3fc) div
(float float1) div
(float float1, float float2, float float3) float
dot
(float float1, float float2, float float3) float
boolean
equals
(float float1, float float2, float float3) 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) half
(float float1, float float2, float float3) int
hashCode()
hermite
(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3fc vector3fc3, float float1, Vector3f vector3f) boolean
isFinite()
float
length()
static float
length
(float float1, float float2, float float3) float
static float
lengthSquared
(float float1, float float2, float float3) int
int
mul
(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) float
mulPositionW
(Matrix4fc matrix4fc) float
mulPositionW
(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) void
readExternal
(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) 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
-
-
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:
getToAddress
in interfaceVector3fc
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mulAdd
-
mulAdd
-
mulAdd
-
mulAdd
-
mul
-
mul
-
div
-
div
-
mulProject
- Specified by:
mulProject
in interfaceVector3fc
-
mulProject
- Specified by:
mulProject
in interfaceVector3fc
-
mulProject
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector3fc
-
mulPosition
-
mulPosition
-
mulPosition
- Specified by:
mulPosition
in interfaceVector3fc
-
mulPosition
- Specified by:
mulPosition
in interfaceVector3fc
-
mulTransposePosition
-
mulTransposePosition
- Specified by:
mulTransposePosition
in interfaceVector3fc
-
mulPositionW
-
mulPositionW
- Specified by:
mulPositionW
in interfaceVector3fc
-
mulDirection
-
mulDirection
-
mulDirection
-
mulDirection
- Specified by:
mulDirection
in interfaceVector3fc
-
mulDirection
- Specified by:
mulDirection
in interfaceVector3fc
-
mulDirection
- Specified by:
mulDirection
in interfaceVector3fc
-
mulTransposeDirection
-
mulTransposeDirection
- Specified by:
mulTransposeDirection
in interfaceVector3fc
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
rotate
-
rotate
-
rotationTo
- Specified by:
rotationTo
in interfaceVector3fc
-
rotationTo
- Specified by:
rotationTo
in interfaceVector3fc
-
rotateAxis
-
rotateAxis
public Vector3f rotateAxis(float float1, float float2, float float3, float float4, Vector3f vector3f) - Specified by:
rotateAxis
in interfaceVector3fc
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in 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:
distanceSquared
in interfaceVector3fc
-
distanceSquared
public float distanceSquared(float float1, float float2, float float3) - Specified by:
distanceSquared
in 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:
angleSigned
in interfaceVector3fc
-
angleSigned
public float angleSigned(float float1, float float2, float float3, float float4, float float5, float float6) - Specified by:
angleSigned
in interfaceVector3fc
-
min
-
min
-
max
-
max
-
zero
-
toString
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
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:
smoothStep
in interfaceVector3fc
-
hermite
-
lerp
-
lerp
-
get
- Specified by:
get
in interfaceVector3fc
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector3fc
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector3fc
-
orthogonalize
- Specified by:
orthogonalize
in interfaceVector3fc
-
orthogonalize
-
orthogonalizeUnit
- Specified by:
orthogonalizeUnit
in interfaceVector3fc
-
orthogonalizeUnit
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
public boolean isFinite()
-