Package org.joml
Class Vector3f
java.lang.Object
org.joml.Vector3f
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector3fc
- Direct Known Subclasses:
Vector3
public class Vector3f extends java.lang.Object implements java.io.Externalizable, Vector3fc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector3f()
Vector3f(float float1)
Vector3f(float[] floatArray)
Vector3f(float float1, float float2, float float3)
Vector3f(int int1, java.nio.ByteBuffer byteBuffer)
Vector3f(int int1, java.nio.FloatBuffer floatBuffer)
Vector3f(java.nio.ByteBuffer byteBuffer)
Vector3f(java.nio.FloatBuffer floatBuffer)
Vector3f(Vector2fc vector2fc, float float1)
Vector3f(Vector2ic vector2ic, float float1)
Vector3f(Vector3fc vector3fc)
Vector3f(Vector3ic vector3ic)
-
Method Summary
Modifier and Type Method Description Vector3f
absolute()
Vector3f
absolute(Vector3f vector3f)
Vector3f
add(float float1, float float2, float float3)
Vector3f
add(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
add(Vector3fc vector3fc)
Vector3f
add(Vector3fc vector3fc, Vector3f vector3f)
float
angle(Vector3fc vector3fc)
float
angleCos(Vector3fc vector3fc)
float
angleSigned(float float1, float float2, float float3, float float4, float float5, float float6)
float
angleSigned(Vector3fc vector3fc, Vector3fc vector3fc2)
Vector3f
ceil()
Vector3f
ceil(Vector3f vector3f)
Vector3f
cross(float float1, float float2, float float3)
Vector3f
cross(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
cross(Vector3fc vector3fc)
Vector3f
cross(Vector3fc vector3fc, Vector3f vector3f)
float
distance(float float1, float float2, float float3)
static float
distance(float float1, float float2, float float3, float float4, float float5, float float6)
float
distance(Vector3fc vector3fc)
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)
Vector3f
div(float float1)
Vector3f
div(float float1, float float2, float float3)
Vector3f
div(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
div(float float1, Vector3f vector3f)
Vector3f
div(Vector3fc vector3fc)
Vector3f
div(Vector3fc vector3fc, Vector3f vector3f)
float
dot(float float1, float float2, float float3)
float
dot(Vector3fc vector3fc)
boolean
equals(float float1, float float2, float float3)
boolean
equals(java.lang.Object object)
boolean
equals(Vector3fc vector3fc, float float1)
Vector3f
floor()
Vector3f
floor(Vector3f vector3f)
Vector3f
fma(float float1, Vector3fc vector3fc)
Vector3f
fma(float float1, Vector3fc vector3fc, Vector3f vector3f)
Vector3f
fma(Vector3fc vector3fc, Vector3fc vector3fc2)
Vector3f
fma(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3f vector3f)
float
get(int int1)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(int int1, java.nio.FloatBuffer floatBuffer)
Vector3i
get(int int1, Vector3i vector3i)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
Vector3d
get(Vector3d vector3d)
Vector3f
get(Vector3f vector3f)
Vector3fc
getToAddress(long long1)
Vector3f
half(float float1, float float2, float float3)
Vector3f
half(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
half(Vector3fc vector3fc)
Vector3f
half(Vector3fc vector3fc, Vector3f vector3f)
int
hashCode()
Vector3f
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
lengthSquared()
static float
lengthSquared(float float1, float float2, float float3)
Vector3f
lerp(Vector3fc vector3fc, float float1)
Vector3f
lerp(Vector3fc vector3fc, float float1, Vector3f vector3f)
Vector3f
max(Vector3fc vector3fc)
Vector3f
max(Vector3fc vector3fc, Vector3f vector3f)
int
maxComponent()
Vector3f
min(Vector3fc vector3fc)
Vector3f
min(Vector3fc vector3fc, Vector3f vector3f)
int
minComponent()
Vector3f
mul(float float1)
Vector3f
mul(float float1, float float2, float float3)
Vector3f
mul(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
mul(float float1, Vector3f vector3f)
Vector3f
mul(Matrix3dc matrix3dc)
Vector3f
mul(Matrix3dc matrix3dc, Vector3f vector3f)
Vector3f
mul(Matrix3fc matrix3fc)
Vector3f
mul(Matrix3fc matrix3fc, Vector3f vector3f)
Vector3f
mul(Matrix3x2fc matrix3x2fc)
Vector3f
mul(Matrix3x2fc matrix3x2fc, Vector3f vector3f)
Vector3f
mul(Vector3fc vector3fc)
Vector3f
mul(Vector3fc vector3fc, Vector3f vector3f)
Vector3f
mulAdd(float float1, Vector3fc vector3fc)
Vector3f
mulAdd(float float1, Vector3fc vector3fc, Vector3f vector3f)
Vector3f
mulAdd(Vector3fc vector3fc, Vector3fc vector3fc2)
Vector3f
mulAdd(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3f vector3f)
Vector3f
mulDirection(Matrix4dc matrix4dc)
Vector3f
mulDirection(Matrix4dc matrix4dc, Vector3f vector3f)
Vector3f
mulDirection(Matrix4fc matrix4fc)
Vector3f
mulDirection(Matrix4fc matrix4fc, Vector3f vector3f)
Vector3f
mulDirection(Matrix4x3fc matrix4x3fc)
Vector3f
mulDirection(Matrix4x3fc matrix4x3fc, Vector3f vector3f)
Vector3f
mulPosition(Matrix4fc matrix4fc)
Vector3f
mulPosition(Matrix4fc matrix4fc, Vector3f vector3f)
Vector3f
mulPosition(Matrix4x3fc matrix4x3fc)
Vector3f
mulPosition(Matrix4x3fc matrix4x3fc, Vector3f vector3f)
float
mulPositionW(Matrix4fc matrix4fc)
float
mulPositionW(Matrix4fc matrix4fc, Vector3f vector3f)
Vector3f
mulProject(Matrix4fc matrix4fc)
Vector3f
mulProject(Matrix4fc matrix4fc, float float1, Vector3f vector3f)
Vector3f
mulProject(Matrix4fc matrix4fc, Vector3f vector3f)
Vector3f
mulTranspose(Matrix3fc matrix3fc)
Vector3f
mulTranspose(Matrix3fc matrix3fc, Vector3f vector3f)
Vector3f
mulTransposeDirection(Matrix4fc matrix4fc)
Vector3f
mulTransposeDirection(Matrix4fc matrix4fc, Vector3f vector3f)
Vector3f
mulTransposePosition(Matrix4fc matrix4fc)
Vector3f
mulTransposePosition(Matrix4fc matrix4fc, Vector3f vector3f)
Vector3f
negate()
Vector3f
negate(Vector3f vector3f)
Vector3f
normalize()
Vector3f
normalize(float float1)
Vector3f
normalize(float float1, Vector3f vector3f)
Vector3f
normalize(Vector3f vector3f)
Vector3f
orthogonalize(Vector3fc vector3fc)
Vector3f
orthogonalize(Vector3fc vector3fc, Vector3f vector3f)
Vector3f
orthogonalizeUnit(Vector3fc vector3fc)
Vector3f
orthogonalizeUnit(Vector3fc vector3fc, Vector3f vector3f)
void
readExternal(java.io.ObjectInput objectInput)
Vector3f
reflect(float float1, float float2, float float3)
Vector3f
reflect(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
reflect(Vector3fc vector3fc)
Vector3f
reflect(Vector3fc vector3fc, Vector3f vector3f)
Vector3f
rotate(Quaternionfc quaternionfc)
Vector3f
rotate(Quaternionfc quaternionfc, Vector3f vector3f)
Vector3f
rotateAxis(float float1, float float2, float float3, float float4)
Vector3f
rotateAxis(float float1, float float2, float float3, float float4, Vector3f vector3f)
Vector3f
rotateX(float float1)
Vector3f
rotateX(float float1, Vector3f vector3f)
Vector3f
rotateY(float float1)
Vector3f
rotateY(float float1, Vector3f vector3f)
Vector3f
rotateZ(float float1)
Vector3f
rotateZ(float float1, Vector3f vector3f)
Quaternionf
rotationTo(float float1, float float2, float float3, Quaternionf quaternionf)
Quaternionf
rotationTo(Vector3fc vector3fc, Quaternionf quaternionf)
Vector3f
round()
Vector3f
round(Vector3f vector3f)
Vector3f
set(double double1)
Vector3f
set(double double1, double double2, double double3)
Vector3f
set(float float1)
Vector3f
set(float[] floatArray)
Vector3f
set(float float1, float float2, float float3)
Vector3f
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector3f
set(int int1, java.nio.FloatBuffer floatBuffer)
Vector3f
set(java.nio.ByteBuffer byteBuffer)
Vector3f
set(java.nio.FloatBuffer floatBuffer)
Vector3f
set(Vector2dc vector2dc, float float1)
Vector3f
set(Vector2fc vector2fc, float float1)
Vector3f
set(Vector2ic vector2ic, float float1)
Vector3f
set(Vector3dc vector3dc)
Vector3f
set(Vector3fc vector3fc)
Vector3f
set(Vector3ic vector3ic)
Vector3f
setComponent(int int1, float float1)
Vector3f
setFromAddress(long long1)
Vector3f
smoothStep(Vector3fc vector3fc, float float1, Vector3f vector3f)
Vector3f
sub(float float1, float float2, float float3)
Vector3f
sub(float float1, float float2, float float3, Vector3f vector3f)
Vector3f
sub(Vector3fc vector3fc)
Vector3f
sub(Vector3fc vector3fc, Vector3f vector3f)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
void
writeExternal(java.io.ObjectOutput objectOutput)
float
x()
float
y()
float
z()
Vector3f
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
-
-
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
public Vector3f(java.nio.ByteBuffer byteBuffer) -
Vector3f
public Vector3f(int int1, java.nio.ByteBuffer byteBuffer) -
Vector3f
public Vector3f(java.nio.FloatBuffer floatBuffer) -
Vector3f
public Vector3f(int int1, java.nio.FloatBuffer floatBuffer)
-
-
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:
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) -
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
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
-
negate
-
negate
-
absolute
-
absolute
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
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
public float get(int int1) throws java.lang.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()
-