Class Vector2d
java.lang.Object
org.joml.Vector2d
- All Implemented Interfaces:
Externalizable
,Serializable
,Vector2dc
- Direct Known Subclasses:
MapProjection.ProjectedMeters
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector2d()
Vector2d
(double arg0) Vector2d
(double[] arg0) Vector2d
(double arg0, double arg1) Vector2d
(float[] floats) Vector2d
(int arg0, ByteBuffer arg1) Vector2d
(int arg0, DoubleBuffer arg1) Vector2d
(ByteBuffer arg0) Vector2d
(DoubleBuffer arg0) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
add
(double arg0, double arg1) double
ceil()
double
distance
(double arg0, double arg1) static double
distance
(double arg0, double arg1, double arg2, double arg3) double
double
double
distanceSquared
(double arg0, double arg1) static double
distanceSquared
(double arg0, double arg1, double arg2, double arg3) double
distanceSquared
(Vector2dc arg0) double
distanceSquared
(Vector2fc arg0) div
(double arg0) div
(double arg0, double arg1) double
boolean
equals
(double arg0, double arg1) boolean
boolean
floor()
double
get
(int arg0) get
(int arg0, ByteBuffer arg1) get
(int arg0, DoubleBuffer arg1) get
(ByteBuffer arg0) get
(DoubleBuffer arg0) getToAddress
(long arg0) int
hashCode()
boolean
isFinite()
double
length()
static double
length
(double arg0, double arg1) double
static double
lengthSquared
(double arg0, double arg1) int
int
mul
(double arg0) mul
(double arg0, double arg1) mulDirection
(Matrix3x2dc arg0) mulDirection
(Matrix3x2dc arg0, Vector2d arg1) mulPosition
(Matrix3x2dc arg0) mulPosition
(Matrix3x2dc arg0, Vector2d arg1) mulTranspose
(Matrix2dc arg0) mulTranspose
(Matrix2dc arg0, Vector2d arg1) mulTranspose
(Matrix2fc arg0) mulTranspose
(Matrix2fc arg0, Vector2d arg1) negate()
normalize
(double arg0) void
readExternal
(ObjectInput arg0) round()
set
(double arg0) set
(double[] arg0) set
(double arg0, double arg1) set
(float[] floats) set
(int arg0, ByteBuffer arg1) set
(int arg0, DoubleBuffer arg1) set
(ByteBuffer arg0) set
(DoubleBuffer arg0) setComponent
(int arg0, double arg1) setFromAddress
(long arg0) sub
(double arg0, double arg1) toString()
toString
(NumberFormat numberFormat) void
writeExternal
(ObjectOutput arg0) double
x()
double
y()
zero()
-
Field Details
-
x
public double x -
y
public double y
-
-
Constructor Details
-
Vector2d
public Vector2d() -
Vector2d
public Vector2d(double arg0) -
Vector2d
public Vector2d(double arg0, double arg1) -
Vector2d
-
Vector2d
-
Vector2d
-
Vector2d
public Vector2d(double[] arg0) -
Vector2d
public Vector2d(float[] floats) -
Vector2d
-
Vector2d
-
Vector2d
-
Vector2d
-
-
Method Details
-
x
-
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 arg0, double arg1) -
length
-
length
public static double length(double arg0, double arg1) -
distance
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector2dc
-
distance
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector2dc
-
distance
-
distanceSquared
public double distanceSquared(double arg0, double arg1) - Specified by:
distanceSquared
in interfaceVector2dc
-
distance
public static double distance(double arg0, double arg1, double arg2, double arg3) -
distanceSquared
public static double distanceSquared(double arg0, double arg1, double arg2, double arg3) -
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
-
equals
-
equals
-
equals
-
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
-
absolute
-
absolute
-