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:
mulProjectin interfaceVector3fc
-
mulProject
-
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
- 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
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquaredin 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:
distanceSquaredin interfaceVector3fc
-
distanceSquared
public float distanceSquared(float x, float y, float z)- Specified by:
distanceSquaredin interfaceVector3fc
-
dot
-
dot
public float dot(float x, float y, float z) -
angleCos
-
angle
-
min
-
max
-
zero
-
toString
public java.lang.String toString()- Overrides:
toStringin 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:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
negate
-
negate
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
reflect
-
reflect
-
reflect
-
reflect
-
half
-
half
-
half
-
half
-
smoothStep
- Specified by:
smoothStepin interfaceVector3fc
-
hermite
-
lerp
-
lerp
-
get
public float get(int component) throws java.lang.IllegalArgumentException -
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
-
toImmutable
-