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 double1, double double2, double double3, double double4)
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(Vector3dc vector3dc, double double1)
Vector4d(Vector3fc vector3fc, double double1)
Vector4d(Vector4dc vector4dc)
Vector4d(Vector4fc vector4fc)
-
Method Summary
Modifier and Type Method Description 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(Vector4fc vector4fc)
double
angle(Vector4dc vector4dc)
double
angleCos(Vector4dc vector4dc)
double
distance(double double1, double double2, double double3, double double4)
double
distance(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(java.lang.Object object)
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)
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)
int
hashCode()
Vector4d
hermite(Vector4dc vector4dc, Vector4dc vector4dc2, Vector4dc vector4dc3, double double1, Vector4d vector4d)
double
length()
double
lengthSquared()
Vector4d
lerp(Vector4dc vector4dc, double double1)
Vector4d
lerp(Vector4dc vector4dc, double double1, Vector4d vector4d)
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
mulProject(Matrix4dc matrix4dc)
Vector4d
mulProject(Matrix4dc matrix4dc, Vector4d vector4d)
Vector4d
negate()
Vector4d
negate(Vector4d vector4d)
Vector4d
normalize()
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
set(double double1)
Vector4d
set(double double1, double double2, double double3, double double4)
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(Vector3dc vector3dc, double double1)
Vector4d
set(Vector3fc vector3fc, double double1)
Vector4d
set(Vector4dc vector4dc)
Vector4d
set(Vector4fc vector4fc)
Vector4d
setComponent(int int1, double double1)
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(Vector4fc vector4fc)
Vector4dc
toImmutable()
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
public Vector4d(double double1) -
Vector4d
-
Vector4d
-
Vector4d
-
Vector4d
public Vector4d(double double1, double double2, double double3, double double4) -
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
-
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
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mul
-
mul
-
div
-
div
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
mulProject
- Specified by:
mulProject
in interfaceVector4dc
-
mulProject
-
mul
-
mul
-
div
-
div
-
rotate
-
rotate
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquared
in interfaceVector4dc
-
length
public double length() -
normalize
-
normalize
-
normalize3
-
normalize3
- Specified by:
normalize3
in interfaceVector4dc
-
distance
-
distance
public double distance(double double1, double double2, double double3, double double4) -
dot
-
dot
public double dot(double double1, double double2, double double3, double double4) -
angleCos
-
angle
-
zero
-
negate
-
negate
-
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
-
smoothStep
- Specified by:
smoothStep
in interfaceVector4dc
-
hermite
-
lerp
-
lerp
-
toImmutable
-