Uses of Class
org.joml.Vector2d
Packages that use Vector2d
-
Uses of Vector2d in org.joml
Modifier and TypeMethodDescriptionVector2d.absolute()
Setthis
vector's components to their respective absolute values.Compute the absolute of each of this vector's components and store the result intodest
.Vector2d.add
(double x, double y) Add(x, y)
to this vector.Addv
to this vector.Addv
to this vector.Add(x, y)
to this vector and store the result indest
.Addv
to this vector and store the result indest
.Addv
to this vector and store the result indest
.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.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 indest
.static Vector2d
Interpolationd.dFdxLinear
(double v0X, double v0Y, double f0X, double f0Y, double v1X, double v1Y, double f1X, double f1Y, double v2X, double v2Y, double f2X, double f2Y, Vector2d dest) Compute the first-order derivative of a linear two-dimensional function f with respect to X and store the result indest
.static Vector2d
Interpolationd.dFdyLinear
(double v0X, double v0Y, double f0X, double f0Y, double v1X, double v1Y, double f1X, double f1Y, double v2X, double v2Y, double f2X, double f2Y, Vector2d dest) Compute the first-order derivative of a linear two-dimensional function f with respect to Y and store the result indest
.Vector2d.div
(double scalar) Divide this Vector2d by the given scalar value.Vector2d.div
(double x, double y) Divide the components of this Vector2d by the given scalar values and store the result inthis
.Divide this Vector2d component-wise by another Vector2dc.Divide this Vector3d component-wise by another Vector2fc.Divide the components of this Vector3f by the given scalar values and store the result indest
.Divide this Vector2d by the given scalar value and store the result indest
.Divide this byv
component-wise and store the result intodest
.Divide this Vector2d component-wise by another Vector2f and store the result indest
.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.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 indest
.Add the component-wise multiplication ofa * b
to this vector.Add the component-wise multiplication ofa * b
to this vector.Add the component-wise multiplication ofa * b
to this vector and store the result indest
.Add the component-wise multiplication ofa * b
to this vector and store the result indest
.Set the components of the given vectordest
to those ofthis
vector.Set the components of the given vectordest
to those ofthis
vector.Get the column at the givencolumn
index, starting with0
.Get the row at the givenrow
index, starting with0
.Get the scaling factors ofthis
matrix for the three base axes.static Vector2d
Interpolationd.interpolateTriangle
(double v0X, double v0Y, double f0X, double f0Y, double v1X, double v1Y, double f1X, double f1Y, double v2X, double v2Y, double f2X, double f2Y, double x, double y, Vector2d dest) Bilinearly interpolate the two-dimensional vector f over the given triangle and store the result indest
.Linearly interpolatethis
andother
using the given interpolation factort
and store the result inthis
.Linearly interpolatethis
andother
using the given interpolation factort
and store the result indest
.Set the components of this vector to be the component-wise maximum of this and the other vector.Set the components ofdest
to be the component-wise maximum of this and the other vector.Set the components of this vector to be the component-wise minimum of this and the other vector.Set the components ofdest
to be the component-wise minimum of this and the other vector.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 inthis
.Multiply the given matrixmat
with this Vector2d.Multiply the given matrixmat
with this Vector2d.Multiply this Vector2d component-wise by another Vector2d.Multiply the components of this Vector2d by the given scalar values and store the result indest
.Multiply the components of this vector by the given scalar and store the result indest
.Multiply the given matrixmat
withthis
and store the result indest
.Multiply the given matrixmat
withthis
and store the result indest
.Multiply this Vector2d component-wise by another Vector2d and store the result indest
.Vector2d.mulDirection
(Matrix3x2dc mat) Multiply the given 3x2 matrixmat
withthis
.Vector2d.mulDirection
(Matrix3x2dc mat, Vector2d dest) Vector2dc.mulDirection
(Matrix3x2dc mat, Vector2d dest) Multiply the given 3x2 matrixmat
withthis
and store the result indest
.Vector2d.mulPosition
(Matrix3x2dc mat) Multiply the given 3x2 matrixmat
withthis
.Vector2d.mulPosition
(Matrix3x2dc mat, Vector2d dest) Vector2dc.mulPosition
(Matrix3x2dc mat, Vector2d dest) Multiply the given 3x2 matrixmat
withthis
and store the result indest
.Vector2d.mulTranspose
(Matrix2dc mat) Multiply the transpose of the given matrix with this Vector2d and store the result inthis
.Vector2d.mulTranspose
(Matrix2dc mat, Vector2d dest) Vector2d.mulTranspose
(Matrix2fc mat) Multiply the transpose of the given matrix with this Vector2d and store the result inthis
.Vector2d.mulTranspose
(Matrix2fc mat, Vector2d dest) Vector2dc.mulTranspose
(Matrix2dc mat, Vector2d dest) Multiply the transpose of the given matrix with this Vector2f and store the result indest
.Vector2dc.mulTranspose
(Matrix2fc mat, Vector2d dest) Multiply the transpose of the given matrix with this Vector2f and store the result indest
.Vector2d.negate()
Negate this vector.Negate this vector and store the result indest
.Vector2d.normalize()
Normalize this vector.Vector2d.normalize
(double length) Scale this vector to have the given length.Scale this vector to have the given length and store the result indest
.Normalize this vector and store the result indest
.Matrix2d.normalizedPositiveX
(Vector2d dir) Matrix2dc.normalizedPositiveX
(Vector2d dest) Obtain the direction of+X
before the transformation represented bythis
orthogonal matrix is applied.Matrix3x2d.normalizedPositiveX
(Vector2d dir) Matrix3x2dc.normalizedPositiveX
(Vector2d dir) Obtain the direction of+X
before the transformation represented bythis
orthogonal matrix is applied.Matrix2d.normalizedPositiveY
(Vector2d dir) Matrix2dc.normalizedPositiveY
(Vector2d dest) Obtain the direction of+Y
before the transformation represented bythis
orthogonal matrix is applied.Matrix3x2d.normalizedPositiveY
(Vector2d dir) Matrix3x2dc.normalizedPositiveY
(Vector2d dir) Obtain the direction of+Y
before the transformation represented bythis
orthogonal matrix is applied.Obtain the position that gets transformed to the origin bythis
matrix.Obtain the position that gets transformed to the origin bythis
matrix.Vector2d.perpendicular()
Set this vector to be one of its perpendicular vectors.Obtain the direction of+X
before the transformation represented bythis
matrix is applied.Obtain the direction of+X
before the transformation represented bythis
matrix is applied.Obtain the direction of+Y
before the transformation represented bythis
matrix is applied.Obtain the direction of+Y
before the transformation represented bythis
matrix is applied.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.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 indest
.Vector2d.set
(double d) Set the x and y components to the supplied value.Vector2d.set
(double[] xy) Set the two components of this vector to the first two elements of the given array.Vector2d.set
(double x, double y) Set the x and y components to the supplied values.Vector2d.set
(float[] xy) Set the two components of this vector to the first two elements of the given array.Vector2d.set
(int index, ByteBuffer buffer) Read this vector from the suppliedByteBuffer
starting at the specified absolute buffer position/index.Vector2d.set
(int index, DoubleBuffer buffer) Read this vector from the suppliedDoubleBuffer
starting at the specified absolute buffer position/index.Vector2d.set
(ByteBuffer buffer) Read this vector from the suppliedByteBuffer
at the current bufferposition
.Vector2d.set
(DoubleBuffer buffer) Read this vector from the suppliedDoubleBuffer
at the current bufferposition
.Set thisVector2d
to the values of v.Set thisVector2d
to be a clone ofv
.Set thisVector2d
to be a clone ofv
.Vector2d.setComponent
(int component, double value) Set the value of the specified component of this vector.Vector2d.setFromAddress
(long address) Set the values of this vector by reading 2 double values from off-heap memory, starting at the given address.Vector2d.sub
(double x, double y) Subtract(x, y)
from this vector.Subtractv
from this vector.Subtractv
from this vector.Subtract(x, y)
from this vector and store the result indest
.Subtractv
fromthis
vector and store the result indest
.Subtractv
fromthis
vector and store the result indest
.Transform the vector(x, y)
by this matrix and store the result indest
.Transform the given vector by this matrix.Transform the given vector by this matrix and store the result indest
.Matrix3x2d.transformDirection
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2d.transformDirection
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result in that vector.Matrix3x2d.transformDirection
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2dc.transformDirection
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2dc.transformDirection
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result in that vector.Matrix3x2dc.transformDirection
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2d.transformPosition
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix3x2d.transformPosition
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result in that vector.Matrix3x2d.transformPosition
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix3x2dc.transformPosition
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix3x2dc.transformPosition
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result in that vector.Matrix3x2dc.transformPosition
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix2d.transformTranspose
(double x, double y, Vector2d dest) Matrix2d.transformTranspose
(Vector2d v) Matrix2d.transformTranspose
(Vector2dc v, Vector2d dest) Matrix2dc.transformTranspose
(double x, double y, Vector2d dest) Transform the vector(x, y)
by the transpose of this matrix and store the result indest
.Matrix2dc.transformTranspose
(Vector2d v) Transform the given vector by the transpose of this matrix.Matrix2dc.transformTranspose
(Vector2dc v, Vector2d dest) Transform the given vector by the transpose of this matrix and store the result indest
.Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.Matrix3x2d.unprojectInv
(double winX, double winY, int[] viewport, Vector2d dest) Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.Matrix3x2dc.unprojectInv
(double winX, double winY, int[] viewport, Vector2d dest) Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.Vector2d.zero()
Set all components to zero.Modifier and TypeMethodDescriptionCompute the absolute of each of this vector's components and store the result intodest
.Add(x, y)
to this vector and store the result indest
.Addv
to this vector and store the result indest
.Addv
to this vector and store the result indest
.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 indest
.static Vector2d
Interpolationd.dFdxLinear
(double v0X, double v0Y, double f0X, double f0Y, double v1X, double v1Y, double f1X, double f1Y, double v2X, double v2Y, double f2X, double f2Y, Vector2d dest) Compute the first-order derivative of a linear two-dimensional function f with respect to X and store the result indest
.static Vector2d
Interpolationd.dFdyLinear
(double v0X, double v0Y, double f0X, double f0Y, double v1X, double v1Y, double f1X, double f1Y, double v2X, double v2Y, double f2X, double f2Y, Vector2d dest) Compute the first-order derivative of a linear two-dimensional function f with respect to Y and store the result indest
.Divide this Vector2d component-wise by another Vector2dc.Divide the components of this Vector3f by the given scalar values and store the result indest
.Divide this Vector2d by the given scalar value and store the result indest
.Divide this byv
component-wise and store the result intodest
.Divide this Vector2d component-wise by another Vector2f and store the result indest
.static int
Intersectiond.findClosestPointOnTriangle
(double v0X, double v0Y, double v1X, double v1Y, double v2X, double v2Y, double pX, double pY, Vector2d result) Determine the closest point on the triangle with the given vertices(v0X, v0Y)
,(v1X, v1Y)
,(v2X, v2Y)
between that triangle and the given point(pX, pY)
and store that point into the givenresult
.static int
Intersectiond.findClosestPointOnTriangle
(Vector2dc v0, Vector2dc v1, Vector2dc v2, Vector2dc p, Vector2d result) Determine the closest point on the triangle with the verticesv0
,v1
,v2
between that triangle and the given pointp
and store that point into the givenresult
.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 indest
.Add the component-wise multiplication ofa * b
to this vector and store the result indest
.Add the component-wise multiplication ofa * b
to this vector and store the result indest
.Set the components of the given vectordest
to those ofthis
vector.Set the components of the given vectordest
to those ofthis
vector.Get the column at the givencolumn
index, starting with0
.Get the row at the givenrow
index, starting with0
.Get the scaling factors ofthis
matrix for the three base axes.static Vector2d
Interpolationd.interpolateTriangle
(double v0X, double v0Y, double f0X, double f0Y, double v1X, double v1Y, double f1X, double f1Y, double v2X, double v2Y, double f2X, double f2Y, double x, double y, Vector2d dest) Bilinearly interpolate the two-dimensional vector f over the given triangle and store the result indest
.static boolean
Intersectiond.intersectLineLine
(double ps1x, double ps1y, double pe1x, double pe1y, double ps2x, double ps2y, double pe2x, double pe2y, Vector2d p) Determine whether the two lines, specified via two points lying on each line, intersect each other, and store the point of intersection into the given vectorp
.static int
Intersectiond.intersectLineSegmentAab
(double p0X, double p0Y, double p0Z, double p1X, double p1Y, double p1Z, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vector2d result) Determine whether the undirected line segment with the end points(p0X, p0Y, p0Z)
and(p1X, p1Y, p1Z)
intersects the axis-aligned box given as its minimum corner(minX, minY, minZ)
and maximum corner(maxX, maxY, maxZ)
, and return the values of the parameter t in the ray equation p(t) = origin + p0 * (p1 - p0) of the near and far point of intersection.static int
Intersectiond.intersectLineSegmentAab
(Vector3dc p0, Vector3dc p1, Vector3dc min, Vector3dc max, Vector2d result) Determine whether the undirected line segment with the end pointsp0
andp1
intersects the axis-aligned box given as its minimum cornermin
and maximum cornermax
, and return the values of the parameter t in the ray equation p(t) = origin + p0 * (p1 - p0) of the near and far point of intersection.static int
Intersectiond.intersectLineSegmentAar
(double p0X, double p0Y, double p1X, double p1Y, double minX, double minY, double maxX, double maxY, Vector2d result) Determine whether the undirected line segment with the end points(p0X, p0Y)
and(p1X, p1Y)
intersects the axis-aligned rectangle given as its minimum corner(minX, minY)
and maximum corner(maxX, maxY)
, and store the values of the parameter t in the ray equation p(t) = p0 + t * (p1 - p0) of the near and far point of intersection intoresult
.static int
Intersectiond.intersectLineSegmentAar
(Vector2dc p0, Vector2dc p1, Vector2dc min, Vector2dc max, Vector2d result) Determine whether the undirected line segment with the end pointsp0
andp1
intersects the axis-aligned rectangle given as its minimum cornermin
and maximum cornermax
, and store the values of the parameter t in the ray equation p(t) = p0 + t * (p1 - p0) of the near and far point of intersection intoresult
.static int
Intersectiond.intersectPolygonRay
(double[] verticesXY, double originX, double originY, double dirX, double dirY, Vector2d p) Determine whether the polygon specified by the given sequence of(x, y)
coordinate pairs intersects with the ray with given origin(originX, originY, originZ)
and direction(dirX, dirY, dirZ)
, and store the point of intersection into the given vectorp
.static int
Intersectiond.intersectPolygonRay
(Vector2dc[] vertices, double originX, double originY, double dirX, double dirY, Vector2d p) Determine whether the polygon specified by the given sequence ofvertices
intersects with the ray with given origin(originX, originY, originZ)
and direction(dirX, dirY, dirZ)
, and store the point of intersection into the given vectorp
.static boolean
Intersectiond.intersectRayAab
(double originX, double originY, double originZ, double dirX, double dirY, double dirZ, double minX, double minY, double minZ, double maxX, double maxY, double maxZ, Vector2d result) Test whether the given ray with the origin(originX, originY, originZ)
and direction(dirX, dirY, dirZ)
intersects the axis-aligned box given as its minimum corner(minX, minY, minZ)
and maximum corner(maxX, maxY, maxZ)
, and return the values of the parameter t in the ray equation p(t) = origin + t * dir of the near and far point of intersection.static boolean
Intersectiond.intersectRayAab
(Vector3dc origin, Vector3dc dir, Vector3dc min, Vector3dc max, Vector2d result) Test whether the ray with the givenorigin
and directiondir
intersects the axis-aligned box specified as its minimum cornermin
and maximum cornermax
, and return the values of the parameter t in the ray equation p(t) = origin + t * dir of the near and far point of intersection..static int
Intersectiond.intersectRayAar
(double originX, double originY, double dirX, double dirY, double minX, double minY, double maxX, double maxY, Vector2d result) Determine whether the given ray with the origin(originX, originY)
and direction(dirX, dirY)
intersects the axis-aligned rectangle given as its minimum corner(minX, minY)
and maximum corner(maxX, maxY)
, and return the values of the parameter t in the ray equation p(t) = origin + t * dir of the near and far point of intersection as well as the side of the axis-aligned rectangle the ray intersects.static int
Intersectiond.intersectRayAar
(Vector2dc origin, Vector2dc dir, Vector2dc min, Vector2dc max, Vector2d result) Determine whether the given ray with the givenorigin
and directiondir
intersects the axis-aligned rectangle given as its minimum cornermin
and maximum cornermax
, and return the values of the parameter t in the ray equation p(t) = origin + t * dir of the near and far point of intersection as well as the side of the axis-aligned rectangle the ray intersects.static boolean
Intersectiond.intersectRayCircle
(double originX, double originY, double dirX, double dirY, double centerX, double centerY, double radiusSquared, Vector2d result) Test whether the given ray with the origin(originX, originY)
and direction(dirX, dirY)
intersects the given circle with center(centerX, centerY)
and square radiusradiusSquared
, and store the values of the parameter t in the ray equation p(t) = origin + t * dir for both points (near and far) of intersections into the givenresult
vector.static boolean
Intersectiond.intersectRayCircle
(Vector2dc origin, Vector2dc dir, Vector2dc center, double radiusSquared, Vector2d result) Test whether the ray with the givenorigin
and directiondir
intersects the circle with the givencenter
and square radiusradiusSquared
, and store the values of the parameter t in the ray equation p(t) = origin + t * dir for both points (near and far) of intersections into the givenresult
vector.static boolean
Intersectiond.intersectRaySphere
(double originX, double originY, double originZ, double dirX, double dirY, double dirZ, double centerX, double centerY, double centerZ, double radiusSquared, Vector2d result) Test whether the given ray with the origin(originX, originY, originZ)
and normalized direction(dirX, dirY, dirZ)
intersects the given sphere with center(centerX, centerY, centerZ)
and square radiusradiusSquared
, and store the values of the parameter t in the ray equation p(t) = origin + t * dir for both points (near and far) of intersections into the givenresult
vector.static boolean
Intersectiond.intersectRaySphere
(Vector3dc origin, Vector3dc dir, Vector3dc center, double radiusSquared, Vector2d result) Test whether the ray with the givenorigin
and normalized directiondir
intersects the sphere with the givencenter
and square radiusradiusSquared
, and store the values of the parameter t in the ray equation p(t) = origin + t * dir for both points (near and far) of intersections into the givenresult
vector.Linearly interpolatethis
andother
using the given interpolation factort
and store the result indest
.Set the components ofdest
to be the component-wise maximum of this and the other vector.Set the components ofdest
to be the component-wise minimum of this and the other vector.Multiply the components of this Vector2d by the given scalar values and store the result indest
.Multiply the components of this vector by the given scalar and store the result indest
.Multiply the given matrixmat
withthis
and store the result indest
.Multiply the given matrixmat
withthis
and store the result indest
.Multiply this Vector2d component-wise by another Vector2d and store the result indest
.Vector2d.mulDirection
(Matrix3x2dc mat, Vector2d dest) Vector2dc.mulDirection
(Matrix3x2dc mat, Vector2d dest) Multiply the given 3x2 matrixmat
withthis
and store the result indest
.Vector2d.mulPosition
(Matrix3x2dc mat, Vector2d dest) Vector2dc.mulPosition
(Matrix3x2dc mat, Vector2d dest) Multiply the given 3x2 matrixmat
withthis
and store the result indest
.Vector2d.mulTranspose
(Matrix2dc mat, Vector2d dest) Vector2d.mulTranspose
(Matrix2fc mat, Vector2d dest) Vector2dc.mulTranspose
(Matrix2dc mat, Vector2d dest) Multiply the transpose of the given matrix with this Vector2f and store the result indest
.Vector2dc.mulTranspose
(Matrix2fc mat, Vector2d dest) Multiply the transpose of the given matrix with this Vector2f and store the result indest
.Negate this vector and store the result indest
.Scale this vector to have the given length and store the result indest
.Normalize this vector and store the result indest
.Matrix2d.normalizedPositiveX
(Vector2d dir) Matrix2dc.normalizedPositiveX
(Vector2d dest) Obtain the direction of+X
before the transformation represented bythis
orthogonal matrix is applied.Matrix3x2d.normalizedPositiveX
(Vector2d dir) Matrix3x2dc.normalizedPositiveX
(Vector2d dir) Obtain the direction of+X
before the transformation represented bythis
orthogonal matrix is applied.Matrix2d.normalizedPositiveY
(Vector2d dir) Matrix2dc.normalizedPositiveY
(Vector2d dest) Obtain the direction of+Y
before the transformation represented bythis
orthogonal matrix is applied.Matrix3x2d.normalizedPositiveY
(Vector2d dir) Matrix3x2dc.normalizedPositiveY
(Vector2d dir) Obtain the direction of+Y
before the transformation represented bythis
orthogonal matrix is applied.Obtain the position that gets transformed to the origin bythis
matrix.Obtain the position that gets transformed to the origin bythis
matrix.Obtain the direction of+X
before the transformation represented bythis
matrix is applied.Obtain the direction of+X
before the transformation represented bythis
matrix is applied.Obtain the direction of+Y
before the transformation represented bythis
matrix is applied.Obtain the direction of+Y
before the transformation represented bythis
matrix is applied.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 indest
.Compute the extents of the coordinate system before this transformation was applied and store the resulting corner coordinates incorner
and the span vectors inxDir
andyDir
.Subtract(x, y)
from this vector and store the result indest
.Subtractv
fromthis
vector and store the result indest
.Subtractv
fromthis
vector and store the result indest
.static boolean
Intersectiond.testMovingCircleCircle
(Vector2d centerA, Vector2d moveA, double aR, Vector2d centerB, double bR) Test whether a given circle with centercenterA
and radiusaR
and travelled distance vectormoveA
intersects a given static circle with centercenterB
and radiusbR
.static boolean
Intersectiond.testPolygonPolygon
(Vector2d[] v1s, Vector2d[] v2s) Test if the two convex polygons, given via their vertices, intersect.Transform the vector(x, y)
by this matrix and store the result indest
.Transform the given vector by this matrix.Transform the given vector by this matrix and store the result indest
.Matrix3x2d.transformDirection
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2d.transformDirection
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result in that vector.Matrix3x2d.transformDirection
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2dc.transformDirection
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2dc.transformDirection
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result in that vector.Matrix3x2dc.transformDirection
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=0, by this matrix and store the result indest
.Matrix3x2d.transformPosition
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix3x2d.transformPosition
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result in that vector.Matrix3x2d.transformPosition
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix3x2dc.transformPosition
(double x, double y, Vector2d dest) Transform/multiply the given 2D-vector(x, y)
, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix3x2dc.transformPosition
(Vector2d v) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result in that vector.Matrix3x2dc.transformPosition
(Vector2dc v, Vector2d dest) Transform/multiply the given 2D-vector, as if it was a 3D-vector with z=1, by this matrix and store the result indest
.Matrix2d.transformTranspose
(double x, double y, Vector2d dest) Matrix2d.transformTranspose
(Vector2d v) Matrix2d.transformTranspose
(Vector2dc v, Vector2d dest) Matrix2dc.transformTranspose
(double x, double y, Vector2d dest) Transform the vector(x, y)
by the transpose of this matrix and store the result indest
.Matrix2dc.transformTranspose
(Vector2d v) Transform the given vector by the transpose of this matrix.Matrix2dc.transformTranspose
(Vector2dc v, Vector2d dest) Transform the given vector by the transpose of this matrix and store the result indest
.Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.Matrix3x2d.unprojectInv
(double winX, double winY, int[] viewport, Vector2d dest) Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.Matrix3x2dc.unprojectInv
(double winX, double winY, int[] viewport, Vector2d dest) Unproject the given window coordinates(winX, winY)
bythis
matrix using the specified viewport.