Package org.joml
Class Vector2d
java.lang.Object
org.joml.Vector2d
- All Implemented Interfaces:
Externalizable
,Serializable
,Vector2dc
- Direct Known Subclasses:
MapProjection.ProjectedMeters
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionVector2d()
Vector2d
(double double1) Vector2d
(double[] doubleArray) Vector2d
(double double1, double double2) Vector2d
(float[] floatArray) Vector2d
(int int1, ByteBuffer byteBuffer) Vector2d
(int int1, DoubleBuffer doubleBuffer) Vector2d
(ByteBuffer byteBuffer) Vector2d
(DoubleBuffer doubleBuffer) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
add
(double double1, double double2) double
ceil()
double
distance
(double double1, double double2) static double
distance
(double double1, double double2, double double3, double double4) double
double
double
distanceSquared
(double double1, double double2) static double
distanceSquared
(double double1, double double2, double double3, double double4) double
distanceSquared
(Vector2dc vector2dc) double
distanceSquared
(Vector2fc vector2fc) div
(double double1) div
(double double1, double double2) double
boolean
equals
(double double1, double double2) boolean
boolean
floor()
double
get
(int int1) get
(int int1, ByteBuffer byteBuffer) get
(int int1, DoubleBuffer doubleBuffer) get
(ByteBuffer byteBuffer) get
(DoubleBuffer doubleBuffer) getToAddress
(long long1) int
hashCode()
boolean
isFinite()
double
length()
static double
length
(double double1, double double2) double
static double
lengthSquared
(double double1, double double2) int
int
mul
(double double1) mul
(double double1, double double2) mulDirection
(Matrix3x2dc matrix3x2dc) mulDirection
(Matrix3x2dc matrix3x2dc, Vector2d vector2d) mulPosition
(Matrix3x2dc matrix3x2dc) mulPosition
(Matrix3x2dc matrix3x2dc, Vector2d vector2d) mulTranspose
(Matrix2dc matrix2dc) mulTranspose
(Matrix2dc matrix2dc, Vector2d vector2d) mulTranspose
(Matrix2fc matrix2fc) mulTranspose
(Matrix2fc matrix2fc, Vector2d vector2d) negate()
normalize
(double double1) void
readExternal
(ObjectInput objectInput) round()
set
(double double1) set
(double[] doubleArray) set
(double double1, double double2) 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) sub
(double double1, double double2) toString()
toString
(NumberFormat numberFormat) void
writeExternal
(ObjectOutput objectOutput) double
x()
double
y()
zero()
-
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
-
Vector2d
public Vector2d(double[] doubleArray) -
Vector2d
public Vector2d(float[] floatArray) -
Vector2d
-
Vector2d
-
Vector2d
-
Vector2d
-
-
Method Details
-
x
public double x() -
y
public double y() -
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFromAddress
-
get
- Specified by:
get
in interfaceVector2dc
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
setComponent
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
get
-
getToAddress
- Specified by:
getToAddress
in interfaceVector2dc
-
perpendicular
-
sub
-
sub
-
sub
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
div
-
div
-
div
-
div
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector2dc
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector2dc
-
mulPosition
-
mulPosition
- Specified by:
mulPosition
in interfaceVector2dc
-
mulDirection
-
mulDirection
- Specified by:
mulDirection
in interfaceVector2dc
-
dot
-
angle
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquared
in interfaceVector2dc
-
lengthSquared
public static double lengthSquared(double double1, double double2) -
length
public double length() -
length
public static double length(double double1, double double2) -
distance
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector2dc
-
distance
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector2dc
-
distance
public double distance(double double1, double double2) -
distanceSquared
public double distanceSquared(double double1, double double2) - Specified by:
distanceSquared
in interfaceVector2dc
-
distance
public static double distance(double double1, double double2, double double3, double double4) -
distanceSquared
public static double distanceSquared(double double1, double double2, double double3, double double4) -
normalize
-
normalize
-
normalize
-
normalize
-
add
-
add
-
add
-
add
-
add
-
add
-
zero
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
negate
-
negate
-
lerp
-
lerp
-
hashCode
public int hashCode() -
equals
-
equals
-
equals
public boolean equals(double double1, double double2) -
toString
-
toString
-
fma
-
fma
-
fma
-
fma
-
min
-
min
-
max
-
max
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector2dc
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector2dc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
public boolean isFinite() -
absolute
-
absolute
-