Vector2d |
Vector2d.add(Vector2dc v) |
Add v to this vector.
|
Vector2d |
Vector2d.add(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Vector2dc.add(Vector2dc v,
Vector2d dest) |
Add v to this vector and store the result in dest .
|
double |
Vector2d.angle(Vector2dc v) |
|
double |
Vector2dc.angle(Vector2dc v) |
Return the angle between this vector and the supplied vector.
|
double |
Vector2d.distance(Vector2dc v) |
|
double |
Vector2dc.distance(Vector2dc v) |
Return the distance between this and v .
|
double |
Vector2d.distanceSquared(Vector2dc v) |
|
double |
Vector2dc.distanceSquared(Vector2dc v) |
Return the distance squared between this and v .
|
Vector2d |
Vector2d.div(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Vector2dc.div(Vector2dc v,
Vector2d dest) |
Divide this by v component-wise and store the result into dest .
|
double |
Vector2d.dot(Vector2dc v) |
|
double |
Vector2dc.dot(Vector2dc v) |
Return the dot product of this vector and v .
|
boolean |
Vector2d.equals(Vector2dc v,
double delta) |
|
boolean |
Vector2dc.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 .
|
static int |
Intersectiond.findClosestPointOnTriangle(Vector2dc v0,
Vector2dc v1,
Vector2dc v2,
Vector2dc p,
Vector2d result) |
Determine the closest point on the triangle with the vertices v0 , v1 , v2
between that triangle and the given point p and store that point into the given result .
|
Vector2d |
Vector2d.fma(double a,
Vector2dc b) |
Add the component-wise multiplication of a * b to this vector.
|
Vector2d |
Vector2d.fma(double a,
Vector2dc b,
Vector2d dest) |
|
Vector2d |
Vector2d.fma(Vector2dc a,
Vector2dc b) |
Add the component-wise multiplication of a * b to this vector.
|
Vector2d |
Vector2d.fma(Vector2dc a,
Vector2dc b,
Vector2d dest) |
|
Vector2d |
Vector2dc.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 |
Vector2dc.fma(Vector2dc a,
Vector2dc b,
Vector2d dest) |
Add the component-wise multiplication of a * b to this vector
and store the result in dest .
|
static boolean |
Intersectiond.intersectCircleCircle(Vector2dc centerA,
double radiusSquaredA,
Vector2dc centerB,
double radiusSquaredB,
Vector3d intersectionCenterAndHL) |
Test whether the one circle with center centerA and square radius radiusSquaredA intersects the other
circle with center centerB and square radius radiusSquaredB , and store the center of the line segment of
intersection in the (x, y) components of the supplied vector and the half-length of that line segment in the z component.
|
static int |
Intersectiond.intersectLineSegmentAar(Vector2dc p0,
Vector2dc p1,
Vector2dc min,
Vector2dc max,
Vector2d result) |
Determine whether the undirected line segment with the end points p0 and p1
intersects the axis-aligned rectangle given as its minimum corner min and maximum corner max ,
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
into result .
|
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 of vertices intersects with the ray
with given origin (originX, originY, originZ) and direction (dirX, dirY, dirZ) , and store the point of intersection
into the given vector p .
|
static int |
Intersectiond.intersectRayAar(Vector2dc origin,
Vector2dc dir,
Vector2dc min,
Vector2dc max,
Vector2d result) |
Determine whether the given ray with the given origin and direction dir
intersects the axis-aligned rectangle given as its minimum corner min and maximum corner max ,
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(Vector2dc origin,
Vector2dc dir,
Vector2dc center,
double radiusSquared,
Vector2d result) |
Test whether the ray with the given origin and direction dir
intersects the circle with the given center and square radius radiusSquared ,
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 given result vector.
|
static double |
Intersectiond.intersectRayLine(Vector2dc origin,
Vector2dc dir,
Vector2dc point,
Vector2dc normal,
double epsilon) |
Test whether the ray with given origin and direction dir intersects the line
containing the given point and having the given normal , and return the
value of the parameter t in the ray equation p(t) = origin + t * dir of the intersection point.
|
static double |
Intersectiond.intersectRayLineSegment(Vector2dc origin,
Vector2dc dir,
Vector2dc a,
Vector2dc b) |
Determine whether the ray with given origin and direction dir intersects the undirected line segment
given by the two end points a and b , and return the value of the parameter t in the ray equation
p(t) = origin + t * dir of the intersection point, if any.
|
Vector2d |
Vector2d.lerp(Vector2dc other,
double t) |
Linearly interpolate this and other using the given interpolation factor t
and store the result in this .
|
Vector2d |
Vector2d.lerp(Vector2dc other,
double t,
Vector2d dest) |
|
Vector2d |
Vector2dc.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 |
Vector2d.max(Vector2dc v) |
Set the components of this vector to be the component-wise maximum of this and the other vector.
|
Vector2d |
Vector2d.max(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Vector2dc.max(Vector2dc v,
Vector2d dest) |
Set the components of dest to be the component-wise maximum of this and the other vector.
|
Vector2d |
Vector2d.min(Vector2dc v) |
Set the components of this vector to be the component-wise minimum of this and the other vector.
|
Vector2d |
Vector2d.min(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Vector2dc.min(Vector2dc v,
Vector2d dest) |
Set the components of dest to be the component-wise minimum of this and the other vector.
|
Vector2d |
Vector2d.mul(Vector2dc v) |
Multiply this Vector2d component-wise by another Vector2d.
|
Vector2d |
Vector2d.mul(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Vector2dc.mul(Vector2dc v,
Vector2d dest) |
Multiply this Vector2d component-wise by another Vector2d and store the result in dest .
|
Matrix3x2d |
Matrix3x2d.rotateTo(Vector2dc fromDir,
Vector2dc toDir) |
Apply a rotation transformation to this matrix that rotates the given normalized fromDir direction vector
to point along the normalized toDir .
|
Matrix3x2d |
Matrix3x2d.rotateTo(Vector2dc fromDir,
Vector2dc toDir,
Matrix3x2d dest) |
Apply a rotation transformation to this matrix that rotates the given normalized fromDir direction vector
to point along the normalized toDir , and store the result in dest .
|
Matrix3x2d |
Matrix3x2dc.rotateTo(Vector2dc fromDir,
Vector2dc toDir,
Matrix3x2d dest) |
Apply a rotation transformation to this matrix that rotates the given normalized fromDir direction vector
to point along the normalized toDir , and store the result in dest .
|
Matrix2d |
Matrix2d.scale(Vector2dc xy) |
Apply scaling to this matrix by scaling the base axes by the given xy.x and
xy.y factors, respectively.
|
Matrix2d |
Matrix2d.scale(Vector2dc xy,
Matrix2d dest) |
|
Matrix2d |
Matrix2dc.scale(Vector2dc xy,
Matrix2d dest) |
Apply scaling to this matrix by scaling the base axes by the given xy.x and
xy.y factors, respectively and store the result in dest .
|
Matrix3x2d |
Matrix3x2d.scale(Vector2dc xy) |
Apply scaling to this matrix by scaling the base axes by the given xy factors.
|
Matrix3x2d |
Matrix3x2d.scale(Vector2dc xy,
Matrix3x2d dest) |
Apply scaling to this matrix by scaling the base axes by the given xy factors
and store the result in dest .
|
Matrix3x2d |
Matrix3x2dc.scale(Vector2dc xy,
Matrix3x2d dest) |
Apply scaling to this matrix by scaling the base axes by the given xy factors
and store the result in dest .
|
Matrix2d |
Matrix2d.scaling(Vector2dc xy) |
Set this matrix to be a simple scale matrix which scales the base axes by xy.x and xy.y respectively.
|
Matrix2d |
Matrix2d.set(Vector2dc col0,
Vector2dc col1) |
Set the two columns of this matrix to the supplied vectors, respectively.
|
Vector2d |
Vector2d.set(Vector2dc v) |
|
Vector2f |
Vector2f.set(Vector2dc v) |
|
Vector2i |
Vector2i.set(Vector2dc v) |
|
Vector2i |
Vector2i.set(Vector2dc v,
int mode) |
|
Vector3d |
Vector3d.set(Vector2dc v,
double z) |
Set the first two components from the given v
and the z component from the given z
|
Vector3f |
Vector3f.set(Vector2dc v,
float z) |
Set the first two components from the given v
and the z component from the given z
|
Vector4d |
Vector4d.set(Vector2dc v,
double z,
double w) |
Set the x and y components from the given v
and the z and w components to the given z and w .
|
Matrix2d |
Matrix2d.setColumn(int column,
Vector2dc src) |
Set the column at the given column index, starting with 0 .
|
Matrix2d |
Matrix2d.setRow(int row,
Vector2dc src) |
Set the row at the given row index, starting with 0 .
|
Matrix3x2d |
Matrix3x2d.setTranslation(Vector2dc offset) |
Set only the translation components of this matrix (m20, m21) to the given values (offset.x, offset.y) .
|
Vector2d |
Vector2d.sub(Vector2dc v) |
Subtract v from this vector.
|
Vector2d |
Vector2d.sub(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Vector2dc.sub(Vector2dc v,
Vector2d dest) |
Subtract v from this vector and store the result in dest .
|
static boolean |
Intersectiond.testAarAar(Vector2dc minA,
Vector2dc maxA,
Vector2dc minB,
Vector2dc maxB) |
Test whether the axis-aligned rectangle with minimum corner minA and maximum corner maxA
intersects the axis-aligned rectangle with minimum corner minB and maximum corner maxB .
|
static boolean |
Intersectiond.testAarCircle(Vector2dc min,
Vector2dc max,
Vector2dc center,
double radiusSquared) |
Test whether the axis-aligned rectangle with minimum corner min and maximum corner max
intersects the circle with the given center and square radius radiusSquared .
|
static boolean |
Intersectiond.testAarLine(Vector2dc min,
Vector2dc max,
double a,
double b,
double c) |
Test whether the axis-aligned rectangle with minimum corner min and maximum corner max
intersects the line with the general equation a*x + b*y + c = 0.
|
static boolean |
Intersectiond.testCircleCircle(Vector2dc centerA,
double radiusSquaredA,
Vector2dc centerB,
double radiusSquaredB) |
Test whether the one circle with center centerA and square radius radiusSquaredA intersects the other
circle with center centerB and square radius radiusSquaredB .
|
static boolean |
Intersectiond.testCircleTriangle(Vector2dc center,
double radiusSquared,
Vector2dc v0,
Vector2dc v1,
Vector2dc v2) |
Test whether the circle with given center and square radius radiusSquared intersects the triangle with counter-clockwise vertices
v0 , v1 , v2 .
|
static boolean |
Intersectiond.testPointTriangle(Vector2dc point,
Vector2dc v0,
Vector2dc v1,
Vector2dc v2) |
Test whether the given point lies inside the triangle with the vertices v0 , v1 , v2 .
|
static boolean |
Intersectiond.testRayAar(Vector2dc origin,
Vector2dc dir,
Vector2dc min,
Vector2dc max) |
Test whether the ray with the given origin and direction dir
intersects the given axis-aligned rectangle specified as its minimum corner min and maximum corner max .
|
static boolean |
Intersectiond.testRayCircle(Vector2dc origin,
Vector2dc dir,
Vector2dc center,
double radiusSquared) |
Test whether the ray with the given origin and direction dir
intersects the circle with the given center and square radius.
|
Vector2d |
Matrix2d.transform(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Matrix2dc.transform(Vector2dc v,
Vector2d dest) |
Transform the given vector by this matrix and store the result in dest .
|
Vector2d |
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 in dest .
|
Vector2d |
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 in dest .
|
Vector2d |
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 in dest .
|
Vector2d |
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 in dest .
|
Vector2d |
Matrix2d.transformTranspose(Vector2dc v,
Vector2d dest) |
|
Vector2d |
Matrix2dc.transformTranspose(Vector2dc v,
Vector2d dest) |
Transform the given vector by the transpose of this matrix and store the result in dest .
|
Matrix3x2d |
Matrix3x2d.translate(Vector2dc offset) |
Apply a translation to this matrix by translating by the given number of units in x and y.
|
Matrix3x2d |
Matrix3x2d.translate(Vector2dc offset,
Matrix3x2d dest) |
Apply a translation to this matrix by translating by the given number of units in x and y, and
store the result in dest .
|
Matrix3x2d |
Matrix3x2dc.translate(Vector2dc offset,
Matrix3x2d dest) |
Apply a translation to this matrix by translating by the given number of units in x and y, and
store the result in dest .
|
Matrix3x2d |
Matrix3x2d.translateLocal(Vector2dc offset) |
Pre-multiply a translation to this matrix by translating by the given number of
units in x and y.
|
Matrix3x2d |
Matrix3x2d.translateLocal(Vector2dc offset,
Matrix3x2d dest) |
Pre-multiply a translation to this matrix by translating by the given number of
units in x and y and store the result in dest .
|
Matrix3x2d |
Matrix3x2dc.translateLocal(Vector2dc offset,
Matrix3x2d dest) |
Pre-multiply a translation to this matrix by translating by the given number of
units in x and y and store the result in dest .
|
Matrix3x2d |
Matrix3x2d.translation(Vector2dc offset) |
Set this matrix to be a simple translation matrix in a two-dimensional coordinate system.
|
Matrix4d |
Matrix4d.unprojectInvRay(Vector2dc winCoords,
int[] viewport,
Vector3d originDest,
Vector3d dirDest) |
|
Matrix4d |
Matrix4dc.unprojectInvRay(Vector2dc winCoords,
int[] viewport,
Vector3d originDest,
Vector3d dirDest) |
Unproject the given window coordinates winCoords by this matrix using the specified viewport
and compute the origin and the direction of the resulting ray which starts at NDC z = -1.0 and goes through NDC z = +1.0 .
|
Matrix4d |
Matrix4d.unprojectRay(Vector2dc winCoords,
int[] viewport,
Vector3d originDest,
Vector3d dirDest) |
|
Matrix4d |
Matrix4dc.unprojectRay(Vector2dc winCoords,
int[] viewport,
Vector3d originDest,
Vector3d dirDest) |
Unproject the given 2D window coordinates winCoords by this matrix using the specified viewport
and compute the origin and the direction of the resulting ray which starts at NDC z = -1.0 and goes through NDC z = +1.0 .
|