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 double1)
Vector3d(double double1, double double2, double double3)
Vector3d(int int1, java.nio.ByteBuffer byteBuffer)
Vector3d(int int1, java.nio.DoubleBuffer doubleBuffer)
Vector3d(java.nio.ByteBuffer byteBuffer)
Vector3d(java.nio.DoubleBuffer doubleBuffer)
Vector3d(Vector2dc vector2dc, double double1)
Vector3d(Vector2fc vector2fc, double double1)
Vector3d(Vector3dc vector3dc)
Vector3d(Vector3fc vector3fc)
-
Method Summary
Modifier and Type Method Description Vector3d
add(double double1, double double2, double double3)
Vector3d
add(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
add(Vector3dc vector3dc)
Vector3d
add(Vector3dc vector3dc, Vector3d vector3d)
Vector3d
add(Vector3fc vector3fc)
Vector3d
add(Vector3fc vector3fc, Vector3d vector3d)
double
angle(Vector3dc vector3dc)
double
angleCos(Vector3dc vector3dc)
Vector3d
cross(double double1, double double2, double double3)
Vector3d
cross(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
cross(Vector3dc vector3dc)
Vector3d
cross(Vector3dc vector3dc, Vector3d vector3d)
double
distance(double double1, double double2, double double3)
double
distance(Vector3dc vector3dc)
double
distanceSquared(double double1, double double2, double double3)
double
distanceSquared(Vector3dc vector3dc)
Vector3d
div(double double1)
Vector3d
div(double double1, double double2, double double3)
Vector3d
div(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
div(double double1, Vector3d vector3d)
Vector3d
div(Vector3d vector3d)
Vector3d
div(Vector3dc vector3dc, Vector3d vector3d)
Vector3d
div(Vector3fc vector3fc)
Vector3d
div(Vector3fc vector3fc, Vector3d vector3d)
double
dot(double double1, double double2, double double3)
double
dot(Vector3dc vector3dc)
boolean
equals(java.lang.Object object)
Vector3d
fma(double double1, Vector3dc vector3dc)
Vector3d
fma(double double1, Vector3dc vector3dc, Vector3d vector3d)
Vector3d
fma(double double1, Vector3fc vector3fc)
Vector3d
fma(double double1, Vector3fc vector3fc, Vector3d vector3d)
Vector3d
fma(Vector3dc vector3dc, Vector3dc vector3dc2)
Vector3d
fma(Vector3dc vector3dc, Vector3dc vector3dc2, Vector3d vector3d)
Vector3d
fma(Vector3dc vector3dc, Vector3fc vector3fc, Vector3d vector3d)
Vector3d
fma(Vector3fc vector3fc, Vector3fc vector3fc2)
double
get(int int1)
java.nio.ByteBuffer
get(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(int int1, java.nio.DoubleBuffer doubleBuffer)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(java.nio.DoubleBuffer doubleBuffer)
Vector3d
half(double double1, double double2, double double3)
Vector3d
half(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
half(Vector3dc vector3dc)
Vector3d
half(Vector3dc vector3dc, Vector3d vector3d)
int
hashCode()
Vector3d
hermite(Vector3dc vector3dc, Vector3dc vector3dc2, Vector3dc vector3dc3, double double1, Vector3d vector3d)
double
length()
double
lengthSquared()
Vector3d
lerp(Vector3dc vector3dc, double double1)
Vector3d
lerp(Vector3dc vector3dc, double double1, Vector3d vector3d)
int
maxComponent()
int
minComponent()
Vector3d
mul(double double1)
Vector3d
mul(double double1, double double2, double double3)
Vector3d
mul(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
mul(double double1, Vector3d vector3d)
Vector3d
mul(Matrix3dc matrix3dc)
Vector3d
mul(Matrix3dc matrix3dc, Vector3d vector3d)
Vector3d
mul(Matrix3fc matrix3fc)
Vector3d
mul(Matrix3fc matrix3fc, Vector3d vector3d)
Vector3d
mul(Vector3dc vector3dc)
Vector3d
mul(Vector3dc vector3dc, Vector3d vector3d)
Vector3d
mul(Vector3fc vector3fc)
Vector3d
mul(Vector3fc vector3fc, Vector3d vector3d)
Vector3d
mulDirection(Matrix4dc matrix4dc)
Vector3d
mulDirection(Matrix4dc matrix4dc, Vector3d vector3d)
Vector3d
mulDirection(Matrix4fc matrix4fc)
Vector3d
mulDirection(Matrix4fc matrix4fc, Vector3d vector3d)
Vector3d
mulDirection(Matrix4x3dc matrix4x3dc)
Vector3d
mulDirection(Matrix4x3dc matrix4x3dc, Vector3d vector3d)
Vector3d
mulDirection(Matrix4x3fc matrix4x3fc)
Vector3d
mulDirection(Matrix4x3fc matrix4x3fc, Vector3d vector3d)
Vector3d
mulPosition(Matrix4dc matrix4dc)
Vector3d
mulPosition(Matrix4dc matrix4dc, Vector3d vector3d)
Vector3d
mulPosition(Matrix4fc matrix4fc)
Vector3d
mulPosition(Matrix4fc matrix4fc, Vector3d vector3d)
Vector3d
mulPosition(Matrix4x3dc matrix4x3dc)
Vector3d
mulPosition(Matrix4x3dc matrix4x3dc, Vector3d vector3d)
Vector3d
mulPosition(Matrix4x3fc matrix4x3fc)
Vector3d
mulPosition(Matrix4x3fc matrix4x3fc, Vector3d vector3d)
double
mulPositionW(Matrix4dc matrix4dc)
double
mulPositionW(Matrix4dc matrix4dc, Vector3d vector3d)
double
mulPositionW(Matrix4fc matrix4fc)
double
mulPositionW(Matrix4fc matrix4fc, Vector3d vector3d)
Vector3d
mulProject(Matrix4dc matrix4dc)
Vector3d
mulProject(Matrix4dc matrix4dc, Vector3d vector3d)
Vector3d
mulProject(Matrix4fc matrix4fc)
Vector3d
mulProject(Matrix4fc matrix4fc, Vector3d vector3d)
Vector3d
mulTranspose(Matrix3dc matrix3dc)
Vector3d
mulTranspose(Matrix3dc matrix3dc, Vector3d vector3d)
Vector3d
mulTranspose(Matrix3fc matrix3fc)
Vector3d
mulTranspose(Matrix3fc matrix3fc, Vector3d vector3d)
Vector3d
mulTransposeDirection(Matrix4dc matrix4dc)
Vector3d
mulTransposeDirection(Matrix4dc matrix4dc, Vector3d vector3d)
Vector3d
mulTransposeDirection(Matrix4fc matrix4fc)
Vector3d
mulTransposeDirection(Matrix4fc matrix4fc, Vector3d vector3d)
Vector3d
mulTransposePosition(Matrix4dc matrix4dc)
Vector3d
mulTransposePosition(Matrix4dc matrix4dc, Vector3d vector3d)
Vector3d
mulTransposePosition(Matrix4fc matrix4fc)
Vector3d
mulTransposePosition(Matrix4fc matrix4fc, Vector3d vector3d)
Vector3d
negate()
Vector3d
negate(Vector3d vector3d)
Vector3d
normalize()
Vector3d
normalize(Vector3d vector3d)
Vector3d
orthogonalize(Vector3dc vector3dc)
Vector3d
orthogonalize(Vector3dc vector3dc, Vector3d vector3d)
Vector3d
orthogonalizeUnit(Vector3dc vector3dc)
Vector3d
orthogonalizeUnit(Vector3dc vector3dc, Vector3d vector3d)
void
readExternal(java.io.ObjectInput objectInput)
Vector3d
reflect(double double1, double double2, double double3)
Vector3d
reflect(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
reflect(Vector3dc vector3dc)
Vector3d
reflect(Vector3dc vector3dc, Vector3d vector3d)
Vector3d
rotate(Quaterniondc quaterniondc)
Vector3d
rotate(Quaterniondc quaterniondc, Vector3d vector3d)
Quaterniond
rotationTo(double double1, double double2, double double3, Quaterniond quaterniond)
Quaterniond
rotationTo(Vector3dc vector3dc, Quaterniond quaterniond)
Vector3d
set(double double1)
Vector3d
set(double double1, double double2, double double3)
Vector3d
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector3d
set(int int1, java.nio.DoubleBuffer doubleBuffer)
Vector3d
set(java.nio.ByteBuffer byteBuffer)
Vector3d
set(java.nio.DoubleBuffer doubleBuffer)
Vector3d
set(Vector2dc vector2dc, double double1)
Vector3d
set(Vector2fc vector2fc, double double1)
Vector3d
set(Vector3dc vector3dc)
Vector3d
set(Vector3fc vector3fc)
Vector3d
setComponent(int int1, double double1)
Vector3d
smoothStep(Vector3dc vector3dc, double double1, Vector3d vector3d)
Vector3d
sub(double double1, double double2, double double3)
Vector3d
sub(double double1, double double2, double double3, Vector3d vector3d)
Vector3d
sub(Vector3dc vector3dc)
Vector3d
sub(Vector3dc vector3dc, Vector3d vector3d)
Vector3d
sub(Vector3fc vector3fc)
Vector3d
sub(Vector3fc vector3fc, Vector3d vector3d)
Vector3dc
toImmutable()
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
void
writeExternal(java.io.ObjectOutput objectOutput)
double
x()
double
y()
double
z()
Vector3d
zero()
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 double1) -
Vector3d
public Vector3d(double double1, double double2, double double3) -
Vector3d
-
Vector3d
-
Vector3d
-
Vector3d
-
Vector3d
public Vector3d(java.nio.ByteBuffer byteBuffer) -
Vector3d
public Vector3d(int int1, java.nio.ByteBuffer byteBuffer) -
Vector3d
public Vector3d(java.nio.DoubleBuffer doubleBuffer) -
Vector3d
public Vector3d(int int1, java.nio.DoubleBuffer doubleBuffer)
-
-
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
- Throws:
java.lang.IllegalArgumentException
-
get
public java.nio.ByteBuffer get(java.nio.ByteBuffer byteBuffer) -
get
public java.nio.ByteBuffer get(int int1, java.nio.ByteBuffer byteBuffer) -
get
public java.nio.DoubleBuffer get(java.nio.DoubleBuffer doubleBuffer) -
get
public java.nio.DoubleBuffer get(int int1, java.nio.DoubleBuffer doubleBuffer) -
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
public Quaterniond rotationTo(double double1, double double2, double double3, Quaterniond quaterniond) -
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 double1, double double2, double double3) -
distanceSquared
- Specified by:
distanceSquared
in interfaceVector3dc
-
distanceSquared
public double distanceSquared(double double1, double double2, double double3)- Specified by:
distanceSquared
in interfaceVector3dc
-
dot
-
dot
public double dot(double double1, double double2, double double3) -
angleCos
-
angle
-
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 interfaceVector3dc
-
hermite
-
lerp
-
lerp
-
get
public double get(int int1) 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
-