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:
mulProjectin interfaceVector3dc
-
mulProject
-
mulProject
- Specified by:
mulProjectin interfaceVector3dc
-
mulProject
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTransposein interfaceVector3dc
-
mulTranspose
-
mulTranspose
- Specified by:
mulTransposein interfaceVector3dc
-
mulPosition
-
mulPosition
-
mulPosition
-
mulPosition
-
mulPosition
- Specified by:
mulPositionin interfaceVector3dc
-
mulPosition
- Specified by:
mulPositionin interfaceVector3dc
-
mulPosition
- Specified by:
mulPositionin interfaceVector3dc
-
mulPosition
- Specified by:
mulPositionin interfaceVector3dc
-
mulTransposePosition
-
mulTransposePosition
- Specified by:
mulTransposePositionin interfaceVector3dc
-
mulTransposePosition
-
mulTransposePosition
- Specified by:
mulTransposePositionin interfaceVector3dc
-
mulPositionW
-
mulPositionW
- Specified by:
mulPositionWin interfaceVector3dc
-
mulPositionW
-
mulPositionW
- Specified by:
mulPositionWin interfaceVector3dc
-
mulDirection
-
mulDirection
-
mulDirection
-
mulDirection
-
mulDirection
- Specified by:
mulDirectionin interfaceVector3dc
-
mulDirection
- Specified by:
mulDirectionin interfaceVector3dc
-
mulDirection
- Specified by:
mulDirectionin interfaceVector3dc
-
mulDirection
- Specified by:
mulDirectionin interfaceVector3dc
-
mulTransposeDirection
-
mulTransposeDirection
- Specified by:
mulTransposeDirectionin interfaceVector3dc
-
mulTransposeDirection
-
mulTransposeDirection
- Specified by:
mulTransposeDirectionin interfaceVector3dc
-
mul
-
mul
-
mul
-
mul
-
rotate
-
rotate
-
rotationTo
-
rotationTo
-
div
-
div
-
div
-
div
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquaredin 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:
distanceSquaredin interfaceVector3dc
-
distanceSquared
public double distanceSquared(double x, double y, double z)- Specified by:
distanceSquaredin interfaceVector3dc
-
dot
-
dot
public double dot(double x, double y, double z) -
angleCos
-
angle
-
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 interfaceVector3dc
-
hermite
-
lerp
-
lerp
-
get
public double get(int component) throws java.lang.IllegalArgumentException -
maxComponent
public int maxComponent()- Specified by:
maxComponentin interfaceVector3dc
-
minComponent
public int minComponent()- Specified by:
minComponentin interfaceVector3dc
-
orthogonalize
- Specified by:
orthogonalizein interfaceVector3dc
-
orthogonalize
-
orthogonalizeUnit
- Specified by:
orthogonalizeUnitin interfaceVector3dc
-
orthogonalizeUnit
-
toImmutable
-