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[] doubleArray)
Vector3d(double double1, double double2, double double3)
Vector3d(float[] floatArray)
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(Vector2ic vector2ic, double double1)
Vector3d(Vector3dc vector3dc)
Vector3d(Vector3fc vector3fc)
Vector3d(Vector3ic vector3ic)
-
Method Summary
Modifier and Type Method Description Vector3d
absolute()
Vector3d
absolute(Vector3d vector3d)
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)
double
angleSigned(double double1, double double2, double double3, double double4, double double5, double double6)
double
angleSigned(Vector3dc vector3dc, Vector3dc vector3dc2)
Vector3d
ceil()
Vector3d
ceil(Vector3d vector3d)
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)
static double
distance(double double1, double double2, double double3, double double4, double double5, double double6)
double
distance(Vector3dc vector3dc)
double
distanceSquared(double double1, double double2, double double3)
static double
distanceSquared(double double1, double double2, double double3, double double4, double double5, double double6)
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(double double1, double double2, double double3)
boolean
equals(java.lang.Object object)
boolean
equals(Vector3dc vector3dc, double double1)
Vector3d
floor()
Vector3d
floor(Vector3d vector3d)
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)
Vector3d
fma(Vector3fc vector3fc, Vector3fc vector3fc2, Vector3d vector3d)
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.FloatBuffer
get(int int1, java.nio.FloatBuffer floatBuffer)
Vector3i
get(int int1, Vector3i vector3i)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(java.nio.DoubleBuffer doubleBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
Vector3d
get(Vector3d vector3d)
Vector3f
get(Vector3f vector3f)
java.nio.ByteBuffer
getf(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.ByteBuffer
getf(java.nio.ByteBuffer byteBuffer)
Vector3dc
getToAddress(long long1)
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)
boolean
isFinite()
double
length()
static double
length(double double1, double double2, double double3)
double
lengthSquared()
static double
lengthSquared(double double1, double double2, double double3)
Vector3d
lerp(Vector3dc vector3dc, double double1)
Vector3d
lerp(Vector3dc vector3dc, double double1, Vector3d vector3d)
Vector3d
max(Vector3dc vector3dc)
Vector3d
max(Vector3dc vector3dc, Vector3d vector3d)
int
maxComponent()
Vector3d
min(Vector3dc vector3dc)
Vector3d
min(Vector3dc vector3dc, Vector3d vector3d)
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)
Vector3f
mul(Matrix3dc matrix3dc, Vector3f vector3f)
Vector3d
mul(Matrix3fc matrix3fc)
Vector3d
mul(Matrix3fc matrix3fc, Vector3d vector3d)
Vector3d
mul(Matrix3x2dc matrix3x2dc)
Vector3d
mul(Matrix3x2dc matrix3x2dc, Vector3d vector3d)
Vector3d
mul(Matrix3x2fc matrix3x2fc)
Vector3d
mul(Matrix3x2fc matrix3x2fc, Vector3d vector3d)
Vector3d
mul(Vector3dc vector3dc)
Vector3d
mul(Vector3dc vector3dc, Vector3d vector3d)
Vector3d
mul(Vector3fc vector3fc)
Vector3d
mul(Vector3fc vector3fc, Vector3d vector3d)
Vector3d
mulAdd(double double1, Vector3dc vector3dc)
Vector3d
mulAdd(double double1, Vector3dc vector3dc, Vector3d vector3d)
Vector3d
mulAdd(Vector3dc vector3dc, Vector3dc vector3dc2)
Vector3d
mulAdd(Vector3dc vector3dc, Vector3dc vector3dc2, Vector3d vector3d)
Vector3d
mulAdd(Vector3fc vector3fc, Vector3dc vector3dc, 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, double double1, Vector3d vector3d)
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(double double1)
Vector3d
normalize(double double1, Vector3d vector3d)
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)
Vector3d
rotateAxis(double double1, double double2, double double3, double double4)
Vector3d
rotateAxis(double double1, double double2, double double3, double double4, Vector3d vector3d)
Vector3d
rotateX(double double1)
Vector3d
rotateX(double double1, Vector3d vector3d)
Vector3d
rotateY(double double1)
Vector3d
rotateY(double double1, Vector3d vector3d)
Vector3d
rotateZ(double double1)
Vector3d
rotateZ(double double1, Vector3d vector3d)
Quaterniond
rotationTo(double double1, double double2, double double3, Quaterniond quaterniond)
Quaterniond
rotationTo(Vector3dc vector3dc, Quaterniond quaterniond)
Vector3d
round()
Vector3d
round(Vector3d vector3d)
Vector3d
set(double double1)
Vector3d
set(double[] doubleArray)
Vector3d
set(double double1, double double2, double double3)
Vector3d
set(float[] floatArray)
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(Vector2ic vector2ic, double double1)
Vector3d
set(Vector3dc vector3dc)
Vector3d
set(Vector3fc vector3fc)
Vector3d
set(Vector3ic vector3ic)
Vector3d
setComponent(int int1, double double1)
Vector3d
setFromAddress(long long1)
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)
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
-
Vector3d
-
Vector3d
public Vector3d(double[] doubleArray) -
Vector3d
public Vector3d(float[] floatArray) -
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
-
set
-
set
-
set
-
set
-
setFromAddress
-
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) -
getf
public java.nio.ByteBuffer getf(java.nio.ByteBuffer byteBuffer) -
getf
public java.nio.ByteBuffer getf(int int1, java.nio.ByteBuffer byteBuffer) -
get
public java.nio.FloatBuffer get(java.nio.FloatBuffer floatBuffer) -
get
public java.nio.FloatBuffer get(int int1, java.nio.FloatBuffer floatBuffer) -
getToAddress
- Specified by:
getToAddress
in interfaceVector3dc
-
sub
-
sub
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
fma
-
fma
-
fma
-
fma
-
fma
-
mulAdd
-
mulAdd
-
mulAdd
-
mulAdd
-
mulAdd
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
mulProject
- Specified by:
mulProject
in interfaceVector3dc
-
mulProject
- Specified by:
mulProject
in interfaceVector3dc
-
mulProject
-
mulProject
- Specified by:
mulProject
in interfaceVector3dc
-
mulProject
-
mul
-
mul
-
mul
-
mul
-
mul
-
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
- Specified by:
rotationTo
in interfaceVector3dc
-
rotationTo
public Quaterniond rotationTo(double double1, double double2, double double3, Quaterniond quaterniond)- Specified by:
rotationTo
in interfaceVector3dc
-
rotateAxis
-
rotateAxis
public Vector3d rotateAxis(double double1, double double2, double double3, double double4, Vector3d vector3d)- Specified by:
rotateAxis
in interfaceVector3dc
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
div
-
div
-
div
-
div
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquared
in interfaceVector3dc
-
lengthSquared
public static double lengthSquared(double double1, double double2, double double3) -
length
public double length() -
length
public static double length(double double1, double double2, double double3) -
normalize
-
normalize
-
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
-
distance
public static double distance(double double1, double double2, double double3, double double4, double double5, double double6) -
distanceSquared
public static double distanceSquared(double double1, double double2, double double3, double double4, double double5, double double6) -
dot
-
dot
public double dot(double double1, double double2, double double3) -
angleCos
-
angle
-
angleSigned
- Specified by:
angleSigned
in interfaceVector3dc
-
angleSigned
public double angleSigned(double double1, double double2, double double3, double double4, double double5, double double6)- Specified by:
angleSigned
in interfaceVector3dc
-
min
-
min
-
max
-
max
-
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
-
absolute
-
absolute
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
equals
-
equals
public boolean equals(double double1, double double2, double double3) -
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 -
get
-
get
-
get
-
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
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
public boolean isFinite()
-