Package org.joml
Class Vector4d
java.lang.Object
org.joml.Vector4d
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector4dc
public class Vector4d extends java.lang.Object implements java.io.Externalizable, Vector4dc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector4d()
Vector4d(double double1)
Vector4d(double[] doubleArray)
Vector4d(double double1, double double2, double double3, double double4)
Vector4d(float[] floatArray)
Vector4d(int int1, java.nio.ByteBuffer byteBuffer)
Vector4d(int int1, java.nio.DoubleBuffer doubleBuffer)
Vector4d(java.nio.ByteBuffer byteBuffer)
Vector4d(java.nio.DoubleBuffer doubleBuffer)
Vector4d(Vector2dc vector2dc, double double1, double double2)
Vector4d(Vector2fc vector2fc, double double1, double double2)
Vector4d(Vector2ic vector2ic, double double1, double double2)
Vector4d(Vector3dc vector3dc, double double1)
Vector4d(Vector3fc vector3fc, double double1)
Vector4d(Vector3ic vector3ic, double double1)
Vector4d(Vector4dc vector4dc)
Vector4d(Vector4fc vector4fc)
Vector4d(Vector4ic vector4ic)
-
Method Summary
Modifier and Type Method Description Vector4d
absolute()
Vector4d
absolute(Vector4d vector4d)
Vector4d
add(double double1, double double2, double double3, double double4)
Vector4d
add(double double1, double double2, double double3, double double4, Vector4d vector4d)
Vector4d
add(Vector4dc vector4dc)
Vector4d
add(Vector4dc vector4dc, Vector4d vector4d)
Vector4d
add(Vector4fc vector4fc)
Vector4d
add(Vector4fc vector4fc, Vector4d vector4d)
double
angle(Vector4dc vector4dc)
double
angleCos(Vector4dc vector4dc)
Vector4d
ceil()
Vector4d
ceil(Vector4d vector4d)
double
distance(double double1, double double2, double double3, double double4)
static double
distance(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
double
distance(Vector4dc vector4dc)
double
distanceSquared(double double1, double double2, double double3, double double4)
static double
distanceSquared(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8)
double
distanceSquared(Vector4dc vector4dc)
Vector4d
div(double double1)
Vector4d
div(double double1, Vector4d vector4d)
Vector4d
div(Vector4dc vector4dc)
Vector4d
div(Vector4dc vector4dc, Vector4d vector4d)
double
dot(double double1, double double2, double double3, double double4)
double
dot(Vector4dc vector4dc)
boolean
equals(double double1, double double2, double double3, double double4)
boolean
equals(java.lang.Object object)
boolean
equals(Vector4dc vector4dc, double double1)
Vector4d
floor()
Vector4d
floor(Vector4d vector4d)
Vector4d
fma(double double1, Vector4dc vector4dc)
Vector4d
fma(double double1, Vector4dc vector4dc, Vector4d vector4d)
Vector4d
fma(Vector4dc vector4dc, Vector4dc vector4dc2)
Vector4d
fma(Vector4dc vector4dc, Vector4dc vector4dc2, Vector4d vector4d)
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)
Vector4i
get(int int1, Vector4i vector4i)
java.nio.ByteBuffer
get(java.nio.ByteBuffer byteBuffer)
java.nio.DoubleBuffer
get(java.nio.DoubleBuffer doubleBuffer)
java.nio.FloatBuffer
get(java.nio.FloatBuffer floatBuffer)
Vector4d
get(Vector4d vector4d)
Vector4f
get(Vector4f vector4f)
java.nio.ByteBuffer
getf(int int1, java.nio.ByteBuffer byteBuffer)
java.nio.ByteBuffer
getf(java.nio.ByteBuffer byteBuffer)
Vector4dc
getToAddress(long long1)
int
hashCode()
Vector4d
hermite(Vector4dc vector4dc, Vector4dc vector4dc2, Vector4dc vector4dc3, double double1, Vector4d vector4d)
boolean
isFinite()
double
length()
static double
length(double double1, double double2, double double3, double double4)
double
lengthSquared()
static double
lengthSquared(double double1, double double2, double double3, double double4)
Vector4d
lerp(Vector4dc vector4dc, double double1)
Vector4d
lerp(Vector4dc vector4dc, double double1, Vector4d vector4d)
Vector4d
max(Vector4dc vector4dc)
Vector4d
max(Vector4dc vector4dc, Vector4d vector4d)
int
maxComponent()
Vector4d
min(Vector4dc vector4dc)
Vector4d
min(Vector4dc vector4dc, Vector4d vector4d)
int
minComponent()
Vector4d
mul(double double1)
Vector4d
mul(double double1, Vector4d vector4d)
Vector4d
mul(Matrix4dc matrix4dc)
Vector4d
mul(Matrix4dc matrix4dc, Vector4d vector4d)
Vector4d
mul(Matrix4fc matrix4fc)
Vector4d
mul(Matrix4fc matrix4fc, Vector4d vector4d)
Vector4d
mul(Matrix4x3dc matrix4x3dc)
Vector4d
mul(Matrix4x3dc matrix4x3dc, Vector4d vector4d)
Vector4d
mul(Matrix4x3fc matrix4x3fc)
Vector4d
mul(Matrix4x3fc matrix4x3fc, Vector4d vector4d)
Vector4d
mul(Vector4dc vector4dc)
Vector4d
mul(Vector4dc vector4dc, Vector4d vector4d)
Vector4d
mul(Vector4fc vector4fc)
Vector4d
mul(Vector4fc vector4fc, Vector4d vector4d)
Vector4d
mulAdd(double double1, Vector4dc vector4dc)
Vector4d
mulAdd(double double1, Vector4dc vector4dc, Vector4d vector4d)
Vector4d
mulAdd(Vector4dc vector4dc, Vector4dc vector4dc2)
Vector4d
mulAdd(Vector4dc vector4dc, Vector4dc vector4dc2, Vector4d vector4d)
Vector4d
mulAffine(Matrix4dc matrix4dc, Vector4d vector4d)
Vector4d
mulAffineTranspose(Matrix4dc matrix4dc, Vector4d vector4d)
Vector4d
mulProject(Matrix4dc matrix4dc)
Vector3d
mulProject(Matrix4dc matrix4dc, Vector3d vector3d)
Vector4d
mulProject(Matrix4dc matrix4dc, Vector4d vector4d)
Vector4d
mulTranspose(Matrix4dc matrix4dc)
Vector4d
mulTranspose(Matrix4dc matrix4dc, Vector4d vector4d)
Vector4d
negate()
Vector4d
negate(Vector4d vector4d)
Vector4d
normalize()
Vector4d
normalize(double double1)
Vector4d
normalize(double double1, Vector4d vector4d)
Vector4d
normalize(Vector4d vector4d)
Vector4d
normalize3()
Vector4d
normalize3(Vector4d vector4d)
void
readExternal(java.io.ObjectInput objectInput)
Vector4d
rotate(Quaterniondc quaterniondc)
Vector4d
rotate(Quaterniondc quaterniondc, Vector4d vector4d)
Vector4d
rotateAxis(double double1, double double2, double double3, double double4)
Vector4d
rotateAxis(double double1, double double2, double double3, double double4, Vector4d vector4d)
Vector4d
rotateX(double double1)
Vector4d
rotateX(double double1, Vector4d vector4d)
Vector4d
rotateY(double double1)
Vector4d
rotateY(double double1, Vector4d vector4d)
Vector4d
rotateZ(double double1)
Vector4d
rotateZ(double double1, Vector4d vector4d)
Vector4d
round()
Vector4d
round(Vector4d vector4d)
Vector4d
set(double double1)
Vector4d
set(double[] doubleArray)
Vector4d
set(double double1, double double2, double double3)
Vector4d
set(double double1, double double2, double double3, double double4)
Vector4d
set(float[] floatArray)
Vector4d
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector4d
set(int int1, java.nio.DoubleBuffer doubleBuffer)
Vector4d
set(java.nio.ByteBuffer byteBuffer)
Vector4d
set(java.nio.DoubleBuffer doubleBuffer)
Vector4d
set(Vector2dc vector2dc, double double1, double double2)
Vector4d
set(Vector2fc vector2fc, double double1, double double2)
Vector4d
set(Vector2ic vector2ic, double double1, double double2)
Vector4d
set(Vector3dc vector3dc, double double1)
Vector4d
set(Vector3fc vector3fc, double double1)
Vector4d
set(Vector3ic vector3ic, double double1)
Vector4d
set(Vector4dc vector4dc)
Vector4d
set(Vector4fc vector4fc)
Vector4d
set(Vector4ic vector4ic)
Vector4d
setComponent(int int1, double double1)
Vector4d
setFromAddress(long long1)
Vector4d
smoothStep(Vector4dc vector4dc, double double1, Vector4d vector4d)
Vector4d
sub(double double1, double double2, double double3, double double4)
Vector4d
sub(double double1, double double2, double double3, double double4, Vector4d vector4d)
Vector4d
sub(Vector4dc vector4dc)
Vector4d
sub(Vector4dc vector4dc, Vector4d vector4d)
Vector4d
sub(Vector4fc vector4fc)
Vector4d
sub(Vector4fc vector4fc, Vector4d vector4d)
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
double
w()
void
writeExternal(java.io.ObjectOutput objectOutput)
double
x()
double
y()
double
z()
Vector4d
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 -
w
public double w
-
-
Constructor Details
-
Vector4d
public Vector4d() -
Vector4d
-
Vector4d
-
Vector4d
-
Vector4d
-
Vector4d
-
Vector4d
-
Vector4d
public Vector4d(double double1) -
Vector4d
-
Vector4d
-
Vector4d
-
Vector4d
public Vector4d(double double1, double double2, double double3, double double4) -
Vector4d
public Vector4d(float[] floatArray) -
Vector4d
public Vector4d(double[] doubleArray) -
Vector4d
public Vector4d(java.nio.ByteBuffer byteBuffer) -
Vector4d
public Vector4d(int int1, java.nio.ByteBuffer byteBuffer) -
Vector4d
public Vector4d(java.nio.DoubleBuffer doubleBuffer) -
Vector4d
public Vector4d(int int1, java.nio.DoubleBuffer doubleBuffer)
-
-
Method Details
-
x
public double x() -
y
public double y() -
z
public double z() -
w
public double w() -
set
-
set
-
set
-
set
-
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 interfaceVector4dc
-
sub
-
sub
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mulAdd
-
mulAdd
-
mulAdd
-
mulAdd
-
mul
-
mul
-
div
-
div
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector4dc
-
mulAffine
-
mulAffineTranspose
- Specified by:
mulAffineTranspose
in interfaceVector4dc
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mulProject
- Specified by:
mulProject
in interfaceVector4dc
-
mulProject
-
mulProject
- Specified by:
mulProject
in interfaceVector4dc
-
mul
-
mul
-
div
-
div
-
rotate
-
rotate
-
rotateAxis
-
rotateAxis
public Vector4d rotateAxis(double double1, double double2, double double3, double double4, Vector4d vector4d)- Specified by:
rotateAxis
in interfaceVector4dc
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquared
in interfaceVector4dc
-
lengthSquared
public static double lengthSquared(double double1, double double2, double double3, double double4) -
length
public double length() -
length
public static double length(double double1, double double2, double double3, double double4) -
normalize
-
normalize
-
normalize
-
normalize
-
normalize3
-
normalize3
- Specified by:
normalize3
in interfaceVector4dc
-
distance
-
distance
public double distance(double double1, double double2, double double3, double double4) -
distanceSquared
- Specified by:
distanceSquared
in interfaceVector4dc
-
distanceSquared
public double distanceSquared(double double1, double double2, double double3, double double4)- Specified by:
distanceSquared
in interfaceVector4dc
-
distance
public static double distance(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
distanceSquared
public static double distanceSquared(double double1, double double2, double double3, double double4, double double5, double double6, double double7, double double8) -
dot
-
dot
public double dot(double double1, double double2, double double3, double double4) -
angleCos
-
angle
-
zero
-
negate
-
negate
-
min
-
min
-
max
-
max
-
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
-
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, double double4) -
smoothStep
- Specified by:
smoothStep
in interfaceVector4dc
-
hermite
-
lerp
-
lerp
-
get
public double get(int int1) throws java.lang.IllegalArgumentException -
get
-
get
-
get
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector4dc
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector4dc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
public boolean isFinite() -
absolute
-
absolute
-