Package org.joml
Class Vector3d
java.lang.Object
org.joml.Vector3d
- All Implemented Interfaces:
Externalizable
,Serializable
,Vector3dc
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVector3d()
Vector3d
(double double1) Vector3d
(double[] doubleArray) Vector3d
(double double1, double double2, double double3) Vector3d
(float[] floatArray) Vector3d
(int int1, ByteBuffer byteBuffer) Vector3d
(int int1, DoubleBuffer doubleBuffer) Vector3d
(ByteBuffer byteBuffer) Vector3d
(DoubleBuffer doubleBuffer) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
add
(double double1, double double2, double double3) double
double
double
angleSigned
(double double1, double double2, double double3, double double4, double double5, double double6) double
angleSigned
(Vector3dc vector3dc, Vector3dc vector3dc2) ceil()
cross
(double double1, double double2, double double3) double
distance
(double double1, double double2, double double3) static double
distance
(double double1, double double2, double double3, double double4, double double5, double double6) double
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) div
(double double1) div
(double double1, double double2, double double3) double
dot
(double double1, double double2, double double3) double
boolean
equals
(double double1, double double2, double double3) boolean
boolean
floor()
double
get
(int int1) get
(int int1, ByteBuffer byteBuffer) get
(int int1, DoubleBuffer doubleBuffer) get
(int int1, FloatBuffer floatBuffer) get
(ByteBuffer byteBuffer) get
(DoubleBuffer doubleBuffer) get
(FloatBuffer floatBuffer) getf
(int int1, ByteBuffer byteBuffer) getf
(ByteBuffer byteBuffer) getToAddress
(long long1) half
(double double1, double double2, double double3) int
hashCode()
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
static double
lengthSquared
(double double1, double double2, double double3) int
int
mul
(double double1) mul
(double double1, double double2, double double3) mul
(Matrix3x2dc matrix3x2dc) mul
(Matrix3x2dc matrix3x2dc, Vector3d vector3d) mul
(Matrix3x2fc matrix3x2fc) mul
(Matrix3x2fc matrix3x2fc, Vector3d vector3d) mulDirection
(Matrix4dc matrix4dc) mulDirection
(Matrix4dc matrix4dc, Vector3d vector3d) mulDirection
(Matrix4fc matrix4fc) mulDirection
(Matrix4fc matrix4fc, Vector3d vector3d) mulDirection
(Matrix4x3dc matrix4x3dc) mulDirection
(Matrix4x3dc matrix4x3dc, Vector3d vector3d) mulDirection
(Matrix4x3fc matrix4x3fc) mulDirection
(Matrix4x3fc matrix4x3fc, Vector3d vector3d) mulPosition
(Matrix4dc matrix4dc) mulPosition
(Matrix4dc matrix4dc, Vector3d vector3d) mulPosition
(Matrix4fc matrix4fc) mulPosition
(Matrix4fc matrix4fc, Vector3d vector3d) mulPosition
(Matrix4x3dc matrix4x3dc) mulPosition
(Matrix4x3dc matrix4x3dc, Vector3d vector3d) mulPosition
(Matrix4x3fc matrix4x3fc) 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) mulProject
(Matrix4dc matrix4dc) mulProject
(Matrix4dc matrix4dc, double double1, Vector3d vector3d) mulProject
(Matrix4dc matrix4dc, Vector3d vector3d) mulProject
(Matrix4fc matrix4fc) mulProject
(Matrix4fc matrix4fc, Vector3d vector3d) mulTranspose
(Matrix3dc matrix3dc) mulTranspose
(Matrix3dc matrix3dc, Vector3d vector3d) mulTranspose
(Matrix3fc matrix3fc) mulTranspose
(Matrix3fc matrix3fc, Vector3d vector3d) mulTransposeDirection
(Matrix4dc matrix4dc) mulTransposeDirection
(Matrix4dc matrix4dc, Vector3d vector3d) mulTransposeDirection
(Matrix4fc matrix4fc) mulTransposeDirection
(Matrix4fc matrix4fc, Vector3d vector3d) mulTransposePosition
(Matrix4dc matrix4dc) mulTransposePosition
(Matrix4dc matrix4dc, Vector3d vector3d) mulTransposePosition
(Matrix4fc matrix4fc) mulTransposePosition
(Matrix4fc matrix4fc, Vector3d vector3d) negate()
normalize
(double double1) orthogonalize
(Vector3dc vector3dc) orthogonalize
(Vector3dc vector3dc, Vector3d vector3d) orthogonalizeUnit
(Vector3dc vector3dc) orthogonalizeUnit
(Vector3dc vector3dc, Vector3d vector3d) void
readExternal
(ObjectInput objectInput) reflect
(double double1, double double2, double double3) rotate
(Quaterniondc quaterniondc) rotate
(Quaterniondc quaterniondc, Vector3d vector3d) rotateAxis
(double double1, double double2, double double3, double double4) rotateAxis
(double double1, double double2, double double3, double double4, Vector3d vector3d) rotateX
(double double1) rotateY
(double double1) rotateZ
(double double1) rotationTo
(double double1, double double2, double double3, Quaterniond quaterniond) rotationTo
(Vector3dc vector3dc, Quaterniond quaterniond) round()
set
(double double1) set
(double[] doubleArray) set
(double double1, double double2, double double3) set
(float[] floatArray) set
(int int1, ByteBuffer byteBuffer) set
(int int1, DoubleBuffer doubleBuffer) set
(ByteBuffer byteBuffer) set
(DoubleBuffer doubleBuffer) setComponent
(int int1, double double1) setFromAddress
(long long1) smoothStep
(Vector3dc vector3dc, double double1, Vector3d vector3d) sub
(double double1, double double2, double double3) toString()
toString
(NumberFormat numberFormat) void
writeExternal
(ObjectOutput objectOutput) double
x()
double
y()
double
z()
zero()
-
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
-
Vector3d
-
Vector3d
-
Vector3d
-
-
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:
IllegalArgumentException
-
get
-
get
-
get
-
get
-
getf
-
getf
-
get
-
get
-
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
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
negate
-
negate
-
absolute
-
absolute
-
hashCode
public int hashCode() -
equals
-
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
- Specified by:
get
in interfaceVector3dc
- Throws:
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()
-