Package org.joml
Class Vector3f
java.lang.Object
org.joml.Vector3f
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector3fc
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 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(Vector3fc vector3fc)
-
Method Summary
Modifier and Type Method Description 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)
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)
float
distance(Vector3fc vector3fc)
float
distanceSquared(float float1, float float2, float float3)
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(java.lang.Object object)
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)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
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)
float
length()
float
lengthSquared()
Vector3f
lerp(Vector3fc vector3fc, float float1)
Vector3f
lerp(Vector3fc vector3fc, float float1, Vector3f vector3f)
Vector3f
max(Vector3fc vector3fc)
int
maxComponent()
Vector3f
min(Vector3fc vector3fc)
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(Matrix3fc matrix3fc)
Vector3f
mul(Matrix3fc matrix3fc, Vector3f vector3f)
Vector3f
mul(Vector3fc vector3fc)
Vector3f
mul(Vector3fc vector3fc, 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, 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(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)
Quaternionf
rotationTo(float float1, float float2, float float3, Quaternionf quaternionf)
Quaternionf
rotationTo(Vector3fc vector3fc, Quaternionf quaternionf)
Vector3f
set(float float1)
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(Vector2fc vector2fc, float float1)
Vector3f
set(Vector3dc vector3dc)
Vector3f
set(Vector3fc vector3fc)
Vector3f
setComponent(int int1, float float1)
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)
Vector3fc
toImmutable()
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
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
-
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) -
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mul
-
mul
-
div
-
div
-
mulProject
- Specified by:
mulProject
in interfaceVector3fc
-
mulProject
-
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
- 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
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceVector3fc
-
length
public float length() -
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
-
dot
-
dot
public float dot(float float1, float float2, float float3) -
angleCos
-
angle
-
min
-
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
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
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 -
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
-
toImmutable
-