Modifier and Type | Field and Description |
---|---|
static double |
ACCURACY
The constant used for testing results.
|
protected double |
m00
coefficients for x coordinate.
|
protected double |
m01
coefficients for x coordinate.
|
protected double |
m02
coefficients for x coordinate.
|
protected double |
m03
coefficients for x coordinate.
|
protected double |
m10
coefficients for y coordinate.
|
protected double |
m11
coefficients for y coordinate.
|
protected double |
m12
coefficients for y coordinate.
|
protected double |
m13
coefficients for y coordinate.
|
protected double |
m20
coefficients for z coordinate.
|
protected double |
m21
coefficients for z coordinate.
|
protected double |
m22
coefficients for z coordinate.
|
protected double |
m23
coefficients for z coordinate.
|
Constructor and Description |
---|
Transform3D() |
Transform3D(double[] coefs) |
Transform3D(double xx,
double yx,
double zx,
double tx,
double xy,
double yy,
double zy,
double ty,
double xz,
double yz,
double zz,
double tz) |
Modifier and Type | Method and Description |
---|---|
double[] |
coefficients()
Returns the affine coefficients of the transform.
|
Transform |
concatenate(Transform other)
Returns the affine transform created by applying first the affine
transform given by
that , then this affine transform. |
boolean |
equals(Object obj)
Compares two transforms.
|
Transform3D |
inverse()
Computes the inverse affine transform.
|
boolean |
isIdentity() |
Transform3D |
preConcatenate(Transform other)
Return the affine transform created by applying first this affine
transform, then the affine transform given by
that . |
Point |
transform(Point src)
Transforms the input point.
|
Point[] |
transform(Point[] src,
Point[] dst)
Transforms the input point array, stores the result in the pre-allocated
array, and returns a pointer to the result array.
|
public static final double ACCURACY
protected double m00
protected double m01
protected double m02
protected double m03
protected double m10
protected double m11
protected double m12
protected double m13
protected double m20
protected double m21
protected double m22
protected double m23
public Transform3D()
public Transform3D(double[] coefs)
public Transform3D(double xx, double yx, double zx, double tx, double xy, double yy, double zy, double ty, double xz, double yz, double zz, double tz)
public boolean isIdentity()
isIdentity
in interface Transform
public double[] coefficients()
public Transform3D inverse()
public Transform concatenate(Transform other)
that
, then this affine transform.concatenate
in interface Transform
that
- the transform to apply firstpublic Transform3D preConcatenate(Transform other)
that
.preConcatenate
in interface Transform
other
- the transform to apply in a second steppublic Point[] transform(Point[] src, Point[] dst)
res
is null or has length smaller than of src.