public class Vector2d extends Object implements Externalizable, Vector2dc
| Modifier and Type | Field and Description |
|---|---|
double |
x
The x component of the vector.
|
double |
y
The y component of the vector.
|
| Constructor and Description |
|---|
Vector2d()
Create a new
Vector2d and initialize its components to zero. |
Vector2d(ByteBuffer buffer)
Create a new
Vector2d and read this vector from the supplied ByteBuffer
at the current buffer position. |
Vector2d(double d)
Create a new
Vector2d and initialize both of its components with the given value. |
Vector2d(DoubleBuffer buffer)
Create a new
Vector2d and read this vector from the supplied DoubleBuffer
at the current buffer position. |
Vector2d(double x,
double y)
Create a new
Vector2d and initialize its components to the given values. |
Vector2d(int index,
ByteBuffer buffer)
Create a new
Vector2d and read this vector from the supplied ByteBuffer
starting at the specified absolute buffer position/index. |
Vector2d(int index,
DoubleBuffer buffer)
Create a new
Vector2d and read this vector from the supplied DoubleBuffer
starting at the specified absolute buffer position/index. |
Vector2d(Vector2dc v)
Create a new
Vector2d and initialize its components to the one of the given vector. |
Vector2d(Vector2fc v)
Create a new
Vector2d and initialize its components to the one of the given vector. |
Vector2d(Vector2ic v)
Create a new
Vector2d and initialize its components to the one of the given vector. |
| Modifier and Type | Method and Description |
|---|---|
Vector2d |
add(double x,
double y)
Add
(x, y) to this vector. |
Vector2d |
add(double x,
double y,
Vector2d dest)
Add
(x, y) to this vector and store the result in dest. |
Vector2d |
add(Vector2dc v)
Add
v to this vector. |
Vector2d |
add(Vector2dc v,
Vector2d dest)
Add
v to this vector and store the result in dest. |
Vector2d |
add(Vector2fc v)
Add
v to this vector. |
Vector2d |
add(Vector2fc v,
Vector2d dest)
Add
v to this vector and store the result in dest. |
double |
angle(Vector2dc v)
Return the angle between this vector and the supplied vector.
|
Vector2d |
ceil()
Set each component of this vector to the smallest (closest to negative
infinity)
double value that is greater than or equal to that
component and is equal to a mathematical integer. |
Vector2d |
ceil(Vector2d dest)
Compute for each component of this vector the smallest (closest to negative
infinity)
double value that is greater than or equal to that
component and is equal to a mathematical integer and store the result in
dest. |
double |
distance(double x,
double y)
Return the distance between
this vector and (x, y). |
static double |
distance(double x1,
double y1,
double x2,
double y2)
Return the distance between
(x1, y1) and (x2, y2). |
double |
distance(Vector2dc v)
Return the distance between this and
v. |
double |
distance(Vector2fc v)
Return the distance between this and
v. |
double |
distanceSquared(double x,
double y)
Return the distance squared between
this vector and (x, y). |
static double |
distanceSquared(double x1,
double y1,
double x2,
double y2)
Return the squared distance between
(x1, y1) and (x2, y2). |
double |
distanceSquared(Vector2dc v)
Return the distance squared between this and
v. |
double |
distanceSquared(Vector2fc v)
Return the distance squared between this and
v. |
double |
dot(Vector2dc v)
Return the dot product of this vector and
v. |
boolean |
equals(double x,
double y)
Compare the vector components of
this vector with the given (x, y)
and return whether all of them are equal. |
boolean |
equals(Object obj) |
boolean |
equals(Vector2dc v,
double delta)
Compare the vector components of
this vector with the given vector using the given delta
and return whether all of them are equal within a maximum difference of delta. |
Vector2d |
floor()
Set each component of this vector to the largest (closest to positive
infinity)
double value that is less than or equal to that
component and is equal to a mathematical integer. |
Vector2d |
floor(Vector2d dest)
Compute for each component of this vector the largest (closest to positive
infinity)
double value that is less than or equal to that
component and is equal to a mathematical integer and store the result in
dest. |
Vector2d |
fma(double a,
Vector2dc b)
Add the component-wise multiplication of
a * b to this vector. |
Vector2d |
fma(double a,
Vector2dc b,
Vector2d dest)
Add the component-wise multiplication of
a * b to this vector
and store the result in dest. |
Vector2d |
fma(Vector2dc a,
Vector2dc b)
Add the component-wise multiplication of
a * b to this vector. |
Vector2d |
fma(Vector2dc a,
Vector2dc b,
Vector2d dest)
Add the component-wise multiplication of
a * b to this vector
and store the result in dest. |
ByteBuffer |
get(ByteBuffer buffer)
Store this vector into the supplied
ByteBuffer at the current
buffer position. |
DoubleBuffer |
get(DoubleBuffer buffer)
Store this vector into the supplied
DoubleBuffer at the current
buffer position. |
double |
get(int component)
Get the value of the specified component of this vector.
|
ByteBuffer |
get(int index,
ByteBuffer buffer)
Store this vector into the supplied
ByteBuffer starting at the specified
absolute buffer position/index. |
DoubleBuffer |
get(int index,
DoubleBuffer buffer)
Store this vector into the supplied
DoubleBuffer starting at the specified
absolute buffer position/index. |
int |
hashCode() |
boolean |
isFinite()
|
double |
length()
Return the length of this vector.
|
static double |
length(double x,
double y)
Get the length of a 2-dimensional double-precision vector.
|
double |
lengthSquared()
Return the length squared of this vector.
|
static double |
lengthSquared(double x,
double y)
Get the length squared of a 2-dimensional double-precision vector.
|
Vector2d |
lerp(Vector2dc other,
double t)
Linearly interpolate
this and other using the given interpolation factor t
and store the result in this. |
Vector2d |
lerp(Vector2dc other,
double t,
Vector2d dest)
Linearly interpolate
this and other using the given interpolation factor t
and store the result in dest. |
Vector2d |
max(Vector2dc v)
Set the components of this vector to be the component-wise maximum of this and the other vector.
|
Vector2d |
max(Vector2dc v,
Vector2d dest)
Set the components of
dest to be the component-wise maximum of this and the other vector. |
int |
maxComponent()
Determine the component with the biggest absolute value.
|
Vector2d |
min(Vector2dc v)
Set the components of this vector to be the component-wise minimum of this and the other vector.
|
Vector2d |
min(Vector2dc v,
Vector2d dest)
Set the components of
dest to be the component-wise minimum of this and the other vector. |
int |
minComponent()
Determine the component with the smallest (towards zero) absolute value.
|
Vector2d |
mul(double scalar)
Multiply the components of this vector by the given scalar.
|
Vector2d |
mul(double x,
double y)
Multiply the components of this Vector2d by the given scalar values and store the result in
this. |
Vector2d |
mul(double x,
double y,
Vector2d dest)
Multiply the components of this Vector2d by the given scalar values and store the result in
dest. |
Vector2d |
mul(double scalar,
Vector2d dest)
Multiply the components of this vector by the given scalar and store the result in
dest. |
Vector2d |
mul(Matrix2dc mat)
Multiply the given matrix
mat with this Vector2d. |
Vector2d |
mul(Matrix2dc mat,
Vector2d dest)
Multiply the given matrix
mat with this and store the
result in dest. |
Vector2d |
mul(Matrix2fc mat)
Multiply the given matrix
mat with this Vector2d. |
Vector2d |
mul(Matrix2fc mat,
Vector2d dest)
Multiply the given matrix
mat with this and store the
result in dest. |
Vector2d |
mul(Vector2dc v)
Multiply this Vector2d component-wise by another Vector2d.
|
Vector2d |
mul(Vector2dc v,
Vector2d dest)
Multiply this Vector2d component-wise by another Vector2d and store the result in
dest. |
Vector2d |
mulDirection(Matrix3x2dc mat)
Multiply the given 3x2 matrix
mat with this. |
Vector2d |
mulDirection(Matrix3x2dc mat,
Vector2d dest)
Multiply the given 3x2 matrix
mat with this and store the
result in dest. |
Vector2d |
mulPosition(Matrix3x2dc mat)
Multiply the given 3x2 matrix
mat with this. |
Vector2d |
mulPosition(Matrix3x2dc mat,
Vector2d dest)
Multiply the given 3x2 matrix
mat with this and store the
result in dest. |
Vector2d |
mulTranspose(Matrix2dc mat)
Multiply the transpose of the given matrix with this Vector2d and store the result in
this. |
Vector2d |
mulTranspose(Matrix2dc mat,
Vector2d dest)
Multiply the transpose of the given matrix with this Vector2f and store the result in
dest. |
Vector2d |
mulTranspose(Matrix2fc mat)
Multiply the transpose of the given matrix with this Vector2d and store the result in
this. |
Vector2d |
mulTranspose(Matrix2fc mat,
Vector2d dest)
Multiply the transpose of the given matrix with this Vector2f and store the result in
dest. |
Vector2d |
negate()
Negate this vector.
|
Vector2d |
negate(Vector2d dest)
Negate this vector and store the result in
dest. |
Vector2d |
normalize()
Normalize this vector.
|
Vector2d |
normalize(double length)
Scale this vector to have the given length.
|
Vector2d |
normalize(double length,
Vector2d dest)
Scale this vector to have the given length and store the result in
dest. |
Vector2d |
normalize(Vector2d dest)
Normalize this vector and store the result in
dest. |
Vector2d |
perpendicular()
Set this vector to be one of its perpendicular vectors.
|
void |
readExternal(ObjectInput in) |
Vector2d |
round()
Set each component of this vector to the closest double that is equal to
a mathematical integer, with ties rounding to positive infinity.
|
Vector2d |
round(Vector2d dest)
Compute for each component of this vector the closest double that is equal to
a mathematical integer, with ties rounding to positive infinity and store
the result in
dest. |
Vector2d |
set(ByteBuffer buffer)
Read this vector from the supplied
ByteBuffer at the current
buffer position. |
Vector2d |
set(double d)
Set the x and y components to the supplied value.
|
Vector2d |
set(DoubleBuffer buffer)
Read this vector from the supplied
DoubleBuffer at the current
buffer position. |
Vector2d |
set(double x,
double y)
Set the x and y components to the supplied values.
|
Vector2d |
set(int index,
ByteBuffer buffer)
Read this vector from the supplied
ByteBuffer starting at the specified
absolute buffer position/index. |
Vector2d |
set(int index,
DoubleBuffer buffer)
Read this vector from the supplied
DoubleBuffer starting at the specified
absolute buffer position/index. |
Vector2d |
set(Vector2dc v)
Set this
Vector2d to the values of v. |
Vector2d |
set(Vector2fc v)
Set this
Vector2d to be a clone of v. |
Vector2d |
set(Vector2ic v)
Set this
Vector2d to be a clone of v. |
Vector2d |
setComponent(int component,
double value)
Set the value of the specified component of this vector.
|
Vector2d |
sub(double x,
double y)
Subtract
(x, y) from this vector. |
Vector2d |
sub(double x,
double y,
Vector2d dest)
Subtract
(x, y) from this vector and store the result in dest. |
Vector2d |
sub(Vector2dc v)
Subtract
v from this vector. |
Vector2d |
sub(Vector2dc v,
Vector2d dest)
Subtract
v from this vector and store the result in dest. |
Vector2d |
sub(Vector2fc v)
Subtract
v from this vector. |
Vector2d |
sub(Vector2fc v,
Vector2d dest)
Subtract
v from this vector and store the result in dest. |
String |
toString()
Return a string representation of this vector.
|
String |
toString(NumberFormat formatter)
Return a string representation of this vector by formatting the vector components with the given
NumberFormat. |
void |
writeExternal(ObjectOutput out) |
double |
x() |
double |
y() |
Vector2d |
zero()
Set all components to zero.
|
public double x
public double y
public Vector2d()
Vector2d and initialize its components to zero.public Vector2d(double d)
Vector2d and initialize both of its components with the given value.d - the value of both componentspublic Vector2d(double x,
double y)
Vector2d and initialize its components to the given values.x - the x valuey - the y valuepublic Vector2d(Vector2dc v)
Vector2d and initialize its components to the one of the given vector.v - the Vector2dc to copy the values frompublic Vector2d(Vector2fc v)
Vector2d and initialize its components to the one of the given vector.v - the Vector2fc to copy the values frompublic Vector2d(Vector2ic v)
Vector2d and initialize its components to the one of the given vector.v - the Vector2ic to copy the values frompublic Vector2d(ByteBuffer buffer)
Vector2d and read this vector from the supplied ByteBuffer
at the current buffer position.
This method will not increment the position of the given ByteBuffer.
In order to specify the offset into the ByteBuffer at which
the vector is read, use Vector2d(int, ByteBuffer), taking
the absolute position as parameter.
buffer - values will be read in x, y orderVector2d(int, ByteBuffer)public Vector2d(int index,
ByteBuffer buffer)
Vector2d and read this vector from the supplied ByteBuffer
starting at the specified absolute buffer position/index.
This method will not increment the position of the given ByteBuffer.
index - the absolute position into the ByteBufferbuffer - values will be read in x, y orderpublic Vector2d(DoubleBuffer buffer)
Vector2d and read this vector from the supplied DoubleBuffer
at the current buffer position.
This method will not increment the position of the given DoubleBuffer.
In order to specify the offset into the DoubleBuffer at which
the vector is read, use Vector2d(int, DoubleBuffer), taking
the absolute position as parameter.
buffer - values will be read in x, y orderVector2d(int, DoubleBuffer)public Vector2d(int index,
DoubleBuffer buffer)
Vector2d and read this vector from the supplied DoubleBuffer
starting at the specified absolute buffer position/index.
This method will not increment the position of the given DoubleBuffer.
index - the absolute position into the DoubleBufferbuffer - values will be read in x, y orderpublic Vector2d set(double d)
d - the value of both componentspublic Vector2d set(double x, double y)
x - the x valuey - the y valuepublic Vector2d set(Vector2dc v)
Vector2d to the values of v.v - the vector to copy frompublic Vector2d set(Vector2fc v)
Vector2d to be a clone of v.v - the vector to copy frompublic Vector2d set(Vector2ic v)
Vector2d to be a clone of v.v - the vector to copy frompublic Vector2d set(ByteBuffer buffer)
ByteBuffer at the current
buffer position.
This method will not increment the position of the given ByteBuffer.
In order to specify the offset into the ByteBuffer at which
the vector is read, use set(int, ByteBuffer), taking
the absolute position as parameter.
buffer - values will be read in x, y orderset(int, ByteBuffer)public Vector2d set(int index, ByteBuffer buffer)
ByteBuffer starting at the specified
absolute buffer position/index.
This method will not increment the position of the given ByteBuffer.
index - the absolute position into the ByteBufferbuffer - values will be read in x, y orderpublic Vector2d set(DoubleBuffer buffer)
DoubleBuffer at the current
buffer position.
This method will not increment the position of the given DoubleBuffer.
In order to specify the offset into the DoubleBuffer at which
the vector is read, use set(int, DoubleBuffer), taking
the absolute position as parameter.
buffer - values will be read in x, y orderset(int, DoubleBuffer)public Vector2d set(int index, DoubleBuffer buffer)
DoubleBuffer starting at the specified
absolute buffer position/index.
This method will not increment the position of the given DoubleBuffer.
index - the absolute position into the DoubleBufferbuffer - values will be read in x, y orderpublic double get(int component)
throws IllegalArgumentException
Vector2dcget in interface Vector2dccomponent - the component, within [0..1]IllegalArgumentException - if component is not within [0..1]public Vector2d setComponent(int component, double value) throws IllegalArgumentException
component - the component whose value to set, within [0..1]value - the value to setIllegalArgumentException - if component is not within [0..1]public ByteBuffer get(ByteBuffer buffer)
Vector2dcByteBuffer at the current
buffer position.
This method will not increment the position of the given ByteBuffer.
In order to specify the offset into the ByteBuffer at which
the vector is stored, use Vector2dc.get(int, ByteBuffer), taking
the absolute position as parameter.
get in interface Vector2dcbuffer - will receive the values of this vector in x, y orderVector2dc.get(int, ByteBuffer)public ByteBuffer get(int index, ByteBuffer buffer)
Vector2dcByteBuffer starting at the specified
absolute buffer position/index.
This method will not increment the position of the given ByteBuffer.
public DoubleBuffer get(DoubleBuffer buffer)
Vector2dcDoubleBuffer at the current
buffer position.
This method will not increment the position of the given DoubleBuffer.
In order to specify the offset into the DoubleBuffer at which
the vector is stored, use Vector2dc.get(int, DoubleBuffer), taking
the absolute position as parameter.
get in interface Vector2dcbuffer - will receive the values of this vector in x, y orderVector2dc.get(int, DoubleBuffer)public DoubleBuffer get(int index, DoubleBuffer buffer)
Vector2dcDoubleBuffer starting at the specified
absolute buffer position/index.
This method will not increment the position of the given DoubleBuffer.
public Vector2d perpendicular()
public Vector2d sub(Vector2dc v)
v from this vector.v - the vector to subtractpublic Vector2d sub(double x, double y)
(x, y) from this vector.x - the x component to subtracty - the y component to subtractpublic Vector2d sub(double x, double y, Vector2d dest)
Vector2dc(x, y) from this vector and store the result in dest.public Vector2d sub(Vector2fc v)
v from this vector.v - the vector to subtractpublic Vector2d sub(Vector2dc v, Vector2d dest)
Vector2dcv from this vector and store the result in dest.public Vector2d sub(Vector2fc v, Vector2d dest)
Vector2dcv from this vector and store the result in dest.public Vector2d mul(double scalar)
scalar - the value to multiply this vector's components bypublic Vector2d mul(double scalar, Vector2d dest)
Vector2dcdest.public Vector2d mul(double x, double y)
this.x - the x component to multiply this vector byy - the y component to multiply this vector bypublic Vector2d mul(double x, double y, Vector2d dest)
Vector2dcdest.public Vector2d mul(Vector2dc v)
v - the vector to multiply bypublic Vector2d mul(Vector2dc v, Vector2d dest)
Vector2dcdest.public Vector2d mul(Matrix2fc mat)
mat with this Vector2d.mat - the matrix to multiply this vector bypublic Vector2d mul(Matrix2dc mat)
mat with this Vector2d.mat - the matrix to multiply this vector bypublic Vector2d mul(Matrix2dc mat, Vector2d dest)
Vector2dcmat with this and store the
result in dest.public Vector2d mul(Matrix2fc mat, Vector2d dest)
Vector2dcmat with this and store the
result in dest.public Vector2d mulTranspose(Matrix2dc mat)
this.mat - the matrixpublic Vector2d mulTranspose(Matrix2dc mat, Vector2d dest)
Vector2dcdest.mulTranspose in interface Vector2dcmat - the matrixdest - will hold the resultpublic Vector2d mulTranspose(Matrix2fc mat)
this.mat - the matrixpublic Vector2d mulTranspose(Matrix2fc mat, Vector2d dest)
Vector2dcdest.mulTranspose in interface Vector2dcmat - the matrixdest - will hold the resultpublic Vector2d mulPosition(Matrix3x2dc mat)
mat with this.
This method assumes the z component of this to be 1.0.
mat - the matrix to multiply this vector bypublic Vector2d mulPosition(Matrix3x2dc mat, Vector2d dest)
Vector2dcmat with this and store the
result in dest.
This method assumes the z component of this to be 1.0.
mulPosition in interface Vector2dcmat - the matrix to multiply this vector bydest - will hold the resultpublic Vector2d mulDirection(Matrix3x2dc mat)
mat with this.
This method assumes the z component of this to be 0.0.
mat - the matrix to multiply this vector bypublic Vector2d mulDirection(Matrix3x2dc mat, Vector2d dest)
Vector2dcmat with this and store the
result in dest.
This method assumes the z component of this to be 0.0.
mulDirection in interface Vector2dcmat - the matrix to multiply this vector bydest - will hold the resultpublic double dot(Vector2dc v)
Vector2dcv.public double angle(Vector2dc v)
Vector2dcpublic double lengthSquared()
Vector2dclengthSquared in interface Vector2dcpublic static double lengthSquared(double x,
double y)
x - The vector's x componenty - The vector's y componentpublic double length()
Vector2dcpublic static double length(double x,
double y)
x - The vector's x componenty - The vector's y componentpublic double distance(Vector2dc v)
Vector2dcv.public double distanceSquared(Vector2dc v)
Vector2dcv.distanceSquared in interface Vector2dcv - the other vectorpublic double distance(Vector2fc v)
Vector2dcv.public double distanceSquared(Vector2fc v)
Vector2dcv.distanceSquared in interface Vector2dcv - the other vectorpublic double distance(double x,
double y)
Vector2dcthis vector and (x, y).public double distanceSquared(double x,
double y)
Vector2dcthis vector and (x, y).distanceSquared in interface Vector2dcx - the x component of the other vectory - the y component of the other vectorpublic static double distance(double x1,
double y1,
double x2,
double y2)
(x1, y1) and (x2, y2).x1 - the x component of the first vectory1 - the y component of the first vectorx2 - the x component of the second vectory2 - the y component of the second vectorpublic static double distanceSquared(double x1,
double y1,
double x2,
double y2)
(x1, y1) and (x2, y2).x1 - the x component of the first vectory1 - the y component of the first vectorx2 - the x component of the second vectory2 - the y component of the second vectorpublic Vector2d normalize()
public Vector2d normalize(Vector2d dest)
Vector2dcdest.public Vector2d normalize(double length)
length - the desired lengthpublic Vector2d normalize(double length, Vector2d dest)
Vector2dcdest.public Vector2d add(Vector2dc v)
v to this vector.v - the vector to addpublic Vector2d add(double x, double y)
(x, y) to this vector.x - the x component to addy - the y component to addpublic Vector2d add(double x, double y, Vector2d dest)
Vector2dc(x, y) to this vector and store the result in dest.public Vector2d add(Vector2fc v)
v to this vector.v - the vector to addpublic Vector2d add(Vector2dc v, Vector2d dest)
Vector2dcv to this vector and store the result in dest.public Vector2d add(Vector2fc v, Vector2d dest)
Vector2dcv to this vector and store the result in dest.public Vector2d zero()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic Vector2d negate()
public Vector2d negate(Vector2d dest)
Vector2dcdest.public Vector2d lerp(Vector2dc other, double t)
this and other using the given interpolation factor t
and store the result in this.
If t is 0.0 then the result is this. If the interpolation factor is 1.0
then the result is other.
other - the other vectort - the interpolation factor between 0.0 and 1.0public Vector2d lerp(Vector2dc other, double t, Vector2d dest)
Vector2dcthis and other using the given interpolation factor t
and store the result in dest.
If t is 0.0 then the result is this. If the interpolation factor is 1.0
then the result is other.
public boolean equals(Vector2dc v, double delta)
Vector2dcthis vector with the given vector using the given delta
and return whether all of them are equal within a maximum difference of delta.
Please note that this method is not used by any data structure such as ArrayList HashSet or HashMap
and their operations, such as ArrayList.contains(Object) or HashSet.remove(Object), since those
data structures only use the Object.equals(Object) and Object.hashCode() methods.
public boolean equals(double x,
double y)
Vector2dcthis vector with the given (x, y)
and return whether all of them are equal.public String toString()
This method creates a new DecimalFormat on every invocation with the format string "0.000E0;-".
public String toString(NumberFormat formatter)
NumberFormat.formatter - the NumberFormat used to format the vector components withpublic Vector2d fma(Vector2dc a, Vector2dc b)
a * b to this vector.a - the first multiplicandb - the second multiplicandpublic Vector2d fma(double a, Vector2dc b)
a * b to this vector.a - the first multiplicandb - the second multiplicandpublic Vector2d fma(Vector2dc a, Vector2dc b, Vector2d dest)
Vector2dca * b to this vector
and store the result in dest.public Vector2d fma(double a, Vector2dc b, Vector2d dest)
Vector2dca * b to this vector
and store the result in dest.public Vector2d min(Vector2dc v)
v - the other vectorpublic Vector2d min(Vector2dc v, Vector2d dest)
Vector2dcdest to be the component-wise minimum of this and the other vector.public Vector2d max(Vector2dc v)
v - the other vectorpublic Vector2d max(Vector2dc v, Vector2d dest)
Vector2dcdest to be the component-wise maximum of this and the other vector.public int maxComponent()
Vector2dcmaxComponent in interface Vector2dc[0..1]public int minComponent()
Vector2dcminComponent in interface Vector2dc[0..1]public Vector2d floor()
double value that is less than or equal to that
component and is equal to a mathematical integer.public Vector2d floor(Vector2d dest)
Vector2dcdouble value that is less than or equal to that
component and is equal to a mathematical integer and store the result in
dest.public Vector2d ceil()
double value that is greater than or equal to that
component and is equal to a mathematical integer.public Vector2d ceil(Vector2d dest)
Vector2dcdouble value that is greater than or equal to that
component and is equal to a mathematical integer and store the result in
dest.public Vector2d round()
public Vector2d round(Vector2d dest)
Vector2dcdest.public boolean isFinite()
Vector2dcCopyright © 2015–2019 JOML. All rights reserved.