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 d)
Vector3f(float x, float y, float z)
Vector3f(int index, java.nio.ByteBuffer buffer)
Vector3f(int index, java.nio.FloatBuffer buffer)
Vector3f(java.nio.ByteBuffer buffer)
Vector3f(java.nio.FloatBuffer buffer)
Vector3f(Vector2fc v, float z)
Vector3f(Vector3fc v)
-
Method Summary
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 d) -
Vector3f
public Vector3f(float x, float y, float z) -
Vector3f
-
Vector3f
-
Vector3f
public Vector3f(java.nio.ByteBuffer buffer) -
Vector3f
public Vector3f(int index, java.nio.ByteBuffer buffer) -
Vector3f
public Vector3f(java.nio.FloatBuffer buffer) -
Vector3f
public Vector3f(int index, java.nio.FloatBuffer buffer)
-
-
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 buffer) -
get
public java.nio.FloatBuffer get(int index, java.nio.FloatBuffer buffer) -
get
public java.nio.ByteBuffer get(java.nio.ByteBuffer buffer) -
get
public java.nio.ByteBuffer get(int index, java.nio.ByteBuffer buffer) -
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 x, float y, float z) -
distanceSquared
- Specified by:
distanceSquared
in interfaceVector3fc
-
distanceSquared
public float distanceSquared(float x, float y, float z)- Specified by:
distanceSquared
in interfaceVector3fc
-
dot
-
dot
public float dot(float x, float y, float z) -
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 formatter) -
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) 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 obj)- 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 component) 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
-