Package org.joml
Class Vector3d
java.lang.Object
org.joml.Vector3d
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector3dc
public class Vector3d extends java.lang.Object implements java.io.Externalizable, Vector3dc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector3d()
Vector3d(double d)
Vector3d(double x, double y, double z)
Vector3d(int index, java.nio.ByteBuffer buffer)
Vector3d(int index, java.nio.DoubleBuffer buffer)
Vector3d(java.nio.ByteBuffer buffer)
Vector3d(java.nio.DoubleBuffer buffer)
Vector3d(Vector2dc v, double z)
Vector3d(Vector2fc v, double z)
Vector3d(Vector3dc v)
Vector3d(Vector3fc v)
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
x
public double x -
y
public double y -
z
public double z
-
-
Constructor Details
-
Vector3d
public Vector3d() -
Vector3d
public Vector3d(double d) -
Vector3d
public Vector3d(double x, double y, double z) -
Vector3d
-
Vector3d
-
Vector3d
-
Vector3d
-
Vector3d
public Vector3d(java.nio.ByteBuffer buffer) -
Vector3d
public Vector3d(int index, java.nio.ByteBuffer buffer) -
Vector3d
public Vector3d(java.nio.DoubleBuffer buffer) -
Vector3d
public Vector3d(int index, java.nio.DoubleBuffer buffer)
-
-
Method Details
-
x
public double x() -
y
public double y() -
z
public double z() -
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setComponent
public Vector3d setComponent(int component, double value) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
get
public java.nio.ByteBuffer get(java.nio.ByteBuffer buffer) -
get
public java.nio.ByteBuffer get(int index, java.nio.ByteBuffer buffer) -
get
public java.nio.DoubleBuffer get(java.nio.DoubleBuffer buffer) -
get
public java.nio.DoubleBuffer get(int index, java.nio.DoubleBuffer buffer) -
sub
-
sub
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
fma
-
fma
-
fma
-
fma
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
mulProject
- Specified by:
mulProject
in interfaceVector3dc
-
mulProject
-
mulProject
- Specified by:
mulProject
in interfaceVector3dc
-
mulProject
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector3dc
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector3dc
-
mulPosition
-
mulPosition
-
mulPosition
-
mulPosition
-
mulPosition
- Specified by:
mulPosition
in interfaceVector3dc
-
mulPosition
- Specified by:
mulPosition
in interfaceVector3dc
-
mulPosition
- Specified by:
mulPosition
in interfaceVector3dc
-
mulPosition
- Specified by:
mulPosition
in interfaceVector3dc
-
mulTransposePosition
-
mulTransposePosition
- Specified by:
mulTransposePosition
in interfaceVector3dc
-
mulTransposePosition
-
mulTransposePosition
- Specified by:
mulTransposePosition
in interfaceVector3dc
-
mulPositionW
-
mulPositionW
- Specified by:
mulPositionW
in interfaceVector3dc
-
mulPositionW
-
mulPositionW
- Specified by:
mulPositionW
in interfaceVector3dc
-
mulDirection
-
mulDirection
-
mulDirection
-
mulDirection
-
mulDirection
- Specified by:
mulDirection
in interfaceVector3dc
-
mulDirection
- Specified by:
mulDirection
in interfaceVector3dc
-
mulDirection
- Specified by:
mulDirection
in interfaceVector3dc
-
mulDirection
- Specified by:
mulDirection
in interfaceVector3dc
-
mulTransposeDirection
-
mulTransposeDirection
- Specified by:
mulTransposeDirection
in interfaceVector3dc
-
mulTransposeDirection
-
mulTransposeDirection
- Specified by:
mulTransposeDirection
in interfaceVector3dc
-
mul
-
mul
-
mul
-
mul
-
rotate
-
rotate
-
rotationTo
-
rotationTo
-
div
-
div
-
div
-
div
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquared
in interfaceVector3dc
-
length
public double length() -
normalize
-
normalize
-
cross
-
cross
-
cross
-
cross
-
distance
-
distance
public double distance(double x, double y, double z) -
distanceSquared
- Specified by:
distanceSquared
in interfaceVector3dc
-
distanceSquared
public double distanceSquared(double x, double y, double z)- Specified by:
distanceSquared
in interfaceVector3dc
-
dot
-
dot
public double dot(double x, double y, double z) -
angleCos
-
angle
-
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 interfaceVector3dc
-
hermite
-
lerp
-
lerp
-
get
public double get(int component) throws java.lang.IllegalArgumentException -
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector3dc
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector3dc
-
orthogonalize
- Specified by:
orthogonalize
in interfaceVector3dc
-
orthogonalize
-
orthogonalizeUnit
- Specified by:
orthogonalizeUnit
in interfaceVector3dc
-
orthogonalizeUnit
-
toImmutable
-