public class Point2d extends Vector2d
| Constructor and Description |
|---|
Point2d()
Creates a Point2d and initializes it to zero.
|
Point2d(double[] values)
Creates a Point2d with the supplied element values.
|
Point2d(double x,
double y)
Creates a Point2d with the supplied element values.
|
Point2d(Vector2d v)
Creates a Point2d by copying a vector
|
| Modifier and Type | Method and Description |
|---|---|
void |
inverseTransform(AffineTransform2dBase X)
Applies an inverse affine transformation to this point, in place.
|
void |
inverseTransform(AffineTransform2dBase X,
Vector2d p1)
Applies an inverse affine transformation to the point p1, and places the
result in this vector.
|
void |
transform(AffineTransform2dBase X)
Applies a affine transformation to this point, in place.
|
void |
transform(AffineTransform2dBase X,
Vector2d p1)
Applies a affine transformation to the point p1, and places the result in
this point.
|
absolute, absolute, add, add, add, angle, clone, combine, cross, cross, distance, distanceSquared, dot, epsilonEquals, equals, get, get, get, infinityNorm, interpolate, interpolate, inverseTransform, inverseTransform, length, lengthSquared, max, maxAbsIndex, maxElement, min, minAbsIndex, minElement, negate, negate, normalize, normalize, oneNorm, perpendicular, rotate, scale, scale, scaledAdd, scaledAdd, set, set, set, set, set, set, setRandom, setRandom, setRandom, setZero, size, sort, sort, sortAbsolute, sub, sub, transform, transform, updateBoundscontainsNaN, copy, copyAndAdd, copyAndNegate, copyAndScale, copyAndSub, copyAndSubLeft, dot, epsilonEquals, equals, get, getDefaultFormat, hasNaN, isColumnVectorStringsVertical, isFixedSize, isRowVector, norm, normSquared, scan, set, set, setColumnVectorStringsVertical, setDefaultFormat, setRowVector, setSize, toString, toString, toString, write, writepublic static final Point2d ZERO
public Point2d()
public Point2d(Vector2d v)
v - vector to be copiedpublic Point2d(double x,
double y)
x - first elementy - second elementpublic Point2d(double[] values)
values - element valuespublic void transform(AffineTransform2dBase X)
public void transform(AffineTransform2dBase X, Vector2d p1)
public void inverseTransform(AffineTransform2dBase X)
inverseTransform in class Vector2dX - affine transformationpublic void inverseTransform(AffineTransform2dBase X, Vector2d p1)
inverseTransform in class Vector2dX - affine transformationp1 - point to be transformed