Package org.joml
Class Vector2d
java.lang.Object
org.joml.Vector2d
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Vector2dc
public class Vector2d extends java.lang.Object implements java.io.Externalizable, Vector2dc
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector2d()
Vector2d(double double1)
Vector2d(double double1, double double2)
Vector2d(int int1, java.nio.ByteBuffer byteBuffer)
Vector2d(int int1, java.nio.DoubleBuffer doubleBuffer)
Vector2d(java.nio.ByteBuffer byteBuffer)
Vector2d(java.nio.DoubleBuffer doubleBuffer)
Vector2d(Vector2dc vector2dc)
Vector2d(Vector2fc vector2fc)
-
Method Summary
Modifier and Type Method Description Vector2d
add(double double1, double double2)
Vector2d
add(double double1, double double2, Vector2d vector2d)
Vector2d
add(Vector2dc vector2dc)
Vector2d
add(Vector2dc vector2dc, Vector2d vector2d)
Vector2d
add(Vector2fc vector2fc)
Vector2d
add(Vector2fc vector2fc, Vector2d vector2d)
double
angle(Vector2dc vector2dc)
double
distance(double double1, double double2)
double
distance(Vector2dc vector2dc)
double
distance(Vector2fc vector2fc)
double
dot(Vector2dc vector2dc)
boolean
equals(java.lang.Object object)
Vector2d
fma(double double1, Vector2dc vector2dc)
Vector2d
fma(double double1, Vector2dc vector2dc, Vector2d vector2d)
Vector2d
fma(Vector2dc vector2dc, Vector2dc vector2dc2)
Vector2d
fma(Vector2dc vector2dc, Vector2dc vector2dc2, Vector2d vector2d)
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()
double
length()
Vector2d
lerp(Vector2dc vector2dc, double double1)
Vector2d
lerp(Vector2dc vector2dc, double double1, Vector2d vector2d)
Vector2d
mul(double double1)
Vector2d
mul(double double1, double double2)
Vector2d
mul(double double1, double double2, Vector2d vector2d)
Vector2d
mul(double double1, Vector2d vector2d)
Vector2d
mul(Vector2dc vector2dc)
Vector2d
mul(Vector2dc vector2dc, Vector2d vector2d)
Vector2d
negate()
Vector2d
negate(Vector2d vector2d)
Vector2d
normalize()
Vector2d
normalize(Vector2d vector2d)
Vector2d
perpendicular()
void
readExternal(java.io.ObjectInput objectInput)
Vector2d
set(double double1)
Vector2d
set(double double1, double double2)
Vector2d
set(int int1, java.nio.ByteBuffer byteBuffer)
Vector2d
set(int int1, java.nio.DoubleBuffer doubleBuffer)
Vector2d
set(java.nio.ByteBuffer byteBuffer)
Vector2d
set(java.nio.DoubleBuffer doubleBuffer)
Vector2d
set(Vector2dc vector2dc)
Vector2d
set(Vector2fc vector2fc)
Vector2d
setComponent(int int1, double double1)
Vector2d
sub(double double1, double double2)
Vector2d
sub(double double1, double double2, Vector2d vector2d)
Vector2d
sub(Vector2dc vector2dc)
Vector2d
sub(Vector2dc vector2dc, Vector2d vector2d)
Vector2d
sub(Vector2fc vector2fc)
Vector2d
sub(Vector2fc vector2fc, Vector2d vector2d)
Vector2dc
toImmutable()
java.lang.String
toString()
java.lang.String
toString(java.text.NumberFormat numberFormat)
void
writeExternal(java.io.ObjectOutput objectOutput)
double
x()
double
y()
Vector2d
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
-
-
Constructor Details
-
Vector2d
public Vector2d() -
Vector2d
public Vector2d(double double1) -
Vector2d
public Vector2d(double double1, double double2) -
Vector2d
-
Vector2d
-
Vector2d
public Vector2d(java.nio.ByteBuffer byteBuffer) -
Vector2d
public Vector2d(int int1, java.nio.ByteBuffer byteBuffer) -
Vector2d
public Vector2d(java.nio.DoubleBuffer doubleBuffer) -
Vector2d
public Vector2d(int int1, java.nio.DoubleBuffer doubleBuffer)
-
-
Method Details
-
x
public double x() -
y
public double y() -
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) -
perpendicular
-
sub
-
sub
-
sub
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
dot
-
angle
-
length
public double length() -
distance
-
distance
-
distance
public double distance(double double1, double double2) -
normalize
-
normalize
-
add
-
add
-
add
-
add
-
add
-
add
-
zero
-
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
-
lerp
-
lerp
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.text.NumberFormat numberFormat) -
fma
-
fma
-
fma
-
fma
-
toImmutable
-