| Modifier and Type | Field and Description |
|---|---|
| private double | |
| private double | |
| private double | |
| private double | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Affine3D(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static double | |
| pack-priv static boolean | |
| public void | concatenate(BaseTransform transform)
Overrides com. Concatenates a |
| public void | concatenate(double Txx, double Txy, double Txz, double Txt, double Tyx, double Tyy, double Tyz, double Tyt, double Tzx, double Tzy, double Tzz, double Tzt)
|
| public BaseTransform | |
| public BaseTransform | createInverse()
Implements abstract com. This function always returns a new object, unless the transform
is an identity transform in which case it might return the
|
| public Vec3d | deltaTransform(Vec3d src, Vec3d dst)
Overrides com. Transforms the specified |
| public Affine3D | deriveWithConcatenation(BaseTransform transform)
Implements abstract com.
|
| public Affine3D | deriveWithConcatenation(double Txx, double Tyx, double Txy, double Tyy, double Txt, double Tyt)
Implements abstract com.
|
| public BaseTransform | deriveWithConcatenation(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
Implements abstract com.
|
| public Affine3D | deriveWithNewTransform(BaseTransform tx)
Implements abstract com.
|
| public Affine3D | deriveWithPreConcatenation(BaseTransform transform)
Implements abstract com.
|
| public Affine3D | deriveWithPreTranslation(double mxt, double myt)
Implements abstract com.
|
| public BaseTransform | deriveWithRotation(double theta, double axisX, double axisY, double axisZ)
Implements abstract com.
|
| public BaseTransform | deriveWithScale(double mxx, double myy, double mzz)
Implements abstract com.
|
| public Affine3D | deriveWithTranslation(double tx, double ty)
Implements abstract com.
|
| public BaseTransform | deriveWithTranslation(double mxt, double myt, double mzt)
Implements abstract com.
|
| public BaseTransform. | |
| public double | getDeterminant()
Overrides com. Returns the determinant of the matrix representation of the transform. |
| public double | |
| public double | |
| public double | |
| public double | |
| public double | |
| public double | |
| public void | inverseDeltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
Overrides com. Inverse transforms an array of single precision relative coordinates by this transform. |
| public Vec3d | inverseDeltaTransform(Vec3d src, Vec3d dst)
Overrides com. Inverse transforms the specified |
| public void | inverseTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)
Overrides com. Inverse transforms an array of single precision coordinates by this transform. |
| public void | inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)
Overrides com. Inverse transforms an array of double precision coordinates by this transform. |
| public Point2D | inverseTransform(Point2D src, Point2D dst)
Overrides com. Inverse transforms the specified |
| public Vec3d | inverseTransform(Vec3d src, Vec3d dst)
Overrides com. Inverse transforms the specified |
| public BaseBounds | inverseTransform(BaseBounds bounds, BaseBounds result)
Overrides com.
|
| public void | inverseTransform(Rectangle bounds, Rectangle result)
Overrides com.
|
| public void | invert()
Overrides com. Sets this transform to the inverse of itself. |
| public Affine3D | |
| private double | |
| public void | |
| public void | |
| protected void | reset3Delements()
Implements abstract com. Resets the 3D (Z) components of the matrix to identity settings (if they are present). |
| public void | restoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt)
Implements abstract com. This function is only guaranteed to succeed if the transform is of degree AFFINE2D or less and the matrix parameters specified came from this same instance. |
| public void | restoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
Implements abstract com. This function is only guaranteed to succeed if the matrix parameters specified came from this same instance. |
| public void | rotate(double theta)
Overrides com. Concatenates this transform with a rotation transformation. |
| public void | |
| public void | scale(double sx, double sy)
Overrides com. Concatenates this transform with a scaling transformation. |
| public void | |
| public void | setToRotation(double theta, double axisX, double axisY, double axisZ, double pivotX, double pivotY, double pivotZ)
|
| public void | |
| public void | |
| public void | |
| public void | setTransform(BaseTransform transform)
Implements abstract com.
|
| public void | setTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt)
|
| public void | shear(double shx, double shy)
Overrides com. Concatenates this transform with a shearing transformation. |
| public String | Returns: aString representing the value of this
Object.Overrides com. Returns a |
| public BaseBounds | transform(BaseBounds src, BaseBounds dst)
Overrides com.
|
| public Vec3d | transform(Vec3d src, Vec3d dst)
Overrides com. Implements com.
|
| public void | translate(double tx, double ty)
Overrides com. Concatenates this transform with a translation transformation. |
| public void | |
| protected void | updateState()
Overrides com. Manually recalculates the state of the transform when the matrix changes too much to predict the effects on the state. |
| mxz | back to summary |
|---|---|
| private double mxz | |
| myz | back to summary |
|---|---|
| private double myz | |
| mzt | back to summary |
|---|---|
| private double mzt | |
| mzx | back to summary |
|---|---|
| private double mzx | |
| mzy | back to summary |
|---|---|
| private double mzy | |
| mzz | back to summary |
|---|---|
| private double mzz | |
| Affine3D | back to summary |
|---|---|
| public Affine3D() | |
| Affine3D | back to summary |
|---|---|
| public Affine3D(BaseTransform transform) | |
| Affine3D | back to summary |
|---|---|
| public Affine3D(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) | |
| Affine3D | back to summary |
|---|---|
| public Affine3D(Affine3D other) | |
| _matround | back to summary |
|---|---|
| private static double _matround(double matval) | |
| almostOne | back to summary |
|---|---|
| pack-priv static boolean almostOne(double a) | |
| concatenate | back to summary |
|---|---|
| public void concatenate(BaseTransform transform) Overrides com. Doc from com. Concatenates a
[this] = [this] x [Tx]
| |
| concatenate | back to summary |
|---|---|
| public void concatenate(double Txx, double Txy, double Txz, double Txt, double Tyx, double Tyy, double Tyz, double Tyt, double Tzx, double Tzy, double Tzz, double Tzt) | |
| copy | back to summary |
|---|---|
| public BaseTransform copy() Implements abstract com.
| |
| createInverse | back to summary |
|---|---|
| public BaseTransform createInverse() throws NoninvertibleTransformException Implements abstract com. Doc from com. This function always returns a new object, unless the transform
is an identity transform in which case it might return the
| |
| deltaTransform | back to summary |
|---|---|
| public Vec3d deltaTransform(Vec3d src, Vec3d dst) Overrides com. Doc from com. Transforms the specified
| |
| deriveWithConcatenation | back to summary |
|---|---|
| public Affine3D deriveWithConcatenation(BaseTransform transform) Implements abstract com.
| |
| deriveWithConcatenation | back to summary |
|---|---|
| public Affine3D deriveWithConcatenation(double Txx, double Tyx, double Txy, double Tyy, double Txt, double Tyt) Implements abstract com.
| |
| deriveWithConcatenation | back to summary |
|---|---|
| public BaseTransform deriveWithConcatenation(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) Implements abstract com.
| |
| deriveWithNewTransform | back to summary |
|---|---|
| public Affine3D deriveWithNewTransform(BaseTransform tx) Implements abstract com.
| |
| deriveWithPreConcatenation | back to summary |
|---|---|
| public Affine3D deriveWithPreConcatenation(BaseTransform transform) Implements abstract com.
| |
| deriveWithPreTranslation | back to summary |
|---|---|
| public Affine3D deriveWithPreTranslation(double mxt, double myt) Implements abstract com.
| |
| deriveWithRotation | back to summary |
|---|---|
| public BaseTransform deriveWithRotation(double theta, double axisX, double axisY, double axisZ) Implements abstract com.
| |
| deriveWithScale | back to summary |
|---|---|
| public BaseTransform deriveWithScale(double mxx, double myy, double mzz) Implements abstract com.
| |
| deriveWithTranslation | back to summary |
|---|---|
| public Affine3D deriveWithTranslation(double tx, double ty) Implements abstract com.
| |
| deriveWithTranslation | back to summary |
|---|---|
| public BaseTransform deriveWithTranslation(double mxt, double myt, double mzt) Implements abstract com.
| |
| getDegree | back to summary |
|---|---|
| public BaseTransform. Implements abstract com.
| |
| getDeterminant | back to summary |
|---|---|
| public double getDeterminant() Overrides com. Doc from com. Returns the determinant of the matrix representation of the transform. The determinant is useful both to determine if the transform can be inverted and to get a single value representing the combined X and Y scaling of the transform.
If the determinant is non-zero, then this transform is
invertible and the various methods that depend on the inverse
transform do not need to throw a
If this transform represents a uniform scale, as indicated by
the Mathematically, the determinant is calculated using the formula:
| mxx mxy mxt |
| myx myy myt | = mxx * myy - mxy * myx
| 0 0 1 |
| |
| getMxz | back to summary |
|---|---|
| public double getMxz() Overrides com.
| |
| getMyz | back to summary |
|---|---|
| public double getMyz() Overrides com.
| |
| getMzt | back to summary |
|---|---|
| public double getMzt() Overrides com.
| |
| getMzx | back to summary |
|---|---|
| public double getMzx() Overrides com.
| |
| getMzy | back to summary |
|---|---|
| public double getMzy() Overrides com.
| |
| getMzz | back to summary |
|---|---|
| public double getMzz() Overrides com.
| |
| inverseDeltaTransform | back to summary |
|---|---|
| public void inverseDeltaTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException Overrides com. Doc from com. Inverse transforms an array of single precision relative coordinates by
this transform.
The two coordinate array sections can be exactly the same or
can be overlapping sections of the same array without affecting the
validity of the results.
This method ensures that no source coordinates are
overwritten by a previous operation before they can be transformed.
The coordinates are stored in the arrays starting at the specified
offset in the order
| |
| inverseDeltaTransform | back to summary |
|---|---|
| public Vec3d inverseDeltaTransform(Vec3d src, Vec3d dst) throws NoninvertibleTransformException Overrides com. Doc from com. Inverse transforms the specified
| |
| inverseTransform | back to summary |
|---|---|
| public void inverseTransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException Overrides com. Doc from com. Inverse transforms an array of single precision coordinates by
this transform.
The two coordinate array sections can be exactly the same or
can be overlapping sections of the same array without affecting the
validity of the results.
This method ensures that no source coordinates are
overwritten by a previous operation before they can be transformed.
The coordinates are stored in the arrays starting at the specified
offset in the order
| |
| inverseTransform | back to summary |
|---|---|
| public void inverseTransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws NoninvertibleTransformException Overrides com. Doc from com. Inverse transforms an array of double precision coordinates by
this transform.
The two coordinate array sections can be exactly the same or
can be overlapping sections of the same array without affecting the
validity of the results.
This method ensures that no source coordinates are
overwritten by a previous operation before they can be transformed.
The coordinates are stored in the arrays starting at the specified
offset in the order
| |
| inverseTransform | back to summary |
|---|---|
| public Point2D inverseTransform(Point2D src, Point2D dst) throws NoninvertibleTransformException Overrides com. Doc from com. Inverse transforms the specified
| |
| inverseTransform | back to summary |
|---|---|
| public Vec3d inverseTransform(Vec3d src, Vec3d dst) throws NoninvertibleTransformException Overrides com. Doc from com. Inverse transforms the specified
| |
| inverseTransform | back to summary |
|---|---|
| public BaseBounds inverseTransform(BaseBounds bounds, BaseBounds result) throws NoninvertibleTransformException Overrides com.
| |
| inverseTransform | back to summary |
|---|---|
| public void inverseTransform(Rectangle bounds, Rectangle result) throws NoninvertibleTransformException Overrides com.
| |
| invert | back to summary |
|---|---|
| public void invert() throws NoninvertibleTransformException Overrides com. Doc from com. Sets this transform to the inverse of itself. The inverse transform Tx' of this transform Tx maps coordinates transformed by Tx back to their original coordinates. In other words, Tx'(Tx(p)) = p = Tx(Tx'(p)).
If this transform maps all coordinates onto a point or a line
then it will not have an inverse, since coordinates that do
not lie on the destination point or line will not have an inverse
mapping.
The
| |
| lookAt | back to summary |
|---|---|
| public Affine3D lookAt(Vec3d eye, Vec3d center, Vec3d up) Sets this transform to a viewing transform computed from the specified eye point, center point, and up vector. The resulting transform can be used as the view transform in a 3D camera. | |
| minor | back to summary |
|---|---|
| private double minor(int row, int col) | |
| preConcatenate | back to summary |
|---|---|
| public void preConcatenate(BaseTransform transform) | |
| preTranslate | back to summary |
|---|---|
| public void preTranslate(double mxt, double myt, double mzt) | |
| reset3Delements | back to summary |
|---|---|
| protected void reset3Delements() Implements abstract com. Doc from com. Resets the 3D (Z) components of the matrix to identity settings (if they are present). This is a NOP unless the transform is Affine3D in which case it needs to reset its added fields.
| |
| restoreTransform | back to summary |
|---|---|
| public void restoreTransform(double mxx, double myx, double mxy, double myy, double mxt, double myt) Implements abstract com. Doc from com. This function is only guaranteed to succeed if the transform is of degree AFFINE2D or less and the matrix parameters specified came from this same instance. In practice, they will also tend to succeed if they specify a transform of Degree less than or equal to the Degree of this instance as well, but the intent of this method is to restore the transform that had been read out of this transform into local variables.
| |
| restoreTransform | back to summary |
|---|---|
| public void restoreTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) Implements abstract com. Doc from com. This function is only guaranteed to succeed if the matrix parameters specified came from this same instance. In practice, they will also tend to succeed if they specify a transform of Degree less than or equal to the Degree of this instance as well, but the intent of this method is to restore the transform that had been read out of this transform into local variables.
| |
| rotate | back to summary |
|---|---|
| public void rotate(double theta) Overrides com. Doc from com. Concatenates this transform with a rotation transformation.
This is equivalent to calling concatenate(R), where R is an
[ cos(theta) -sin(theta) 0 ]
[ sin(theta) cos(theta) 0 ]
[ 0 0 1 ]
Rotating by a positive angle theta rotates points on the positive
X axis toward the positive Y axis.
Note also the discussion of
Handling 90-Degree Rotations
above.
| |
| rotate | back to summary |
|---|---|
| public void rotate(double theta, double axisX, double axisY, double axisZ) | |
| scale | back to summary |
|---|---|
| public void scale(double sx, double sy) Overrides com. Doc from com. Concatenates this transform with a scaling transformation.
This is equivalent to calling concatenate(S), where S is an
[ sx 0 0 ]
[ 0 sy 0 ]
[ 0 0 1 ]
| |
| scale | back to summary |
|---|---|
| public void scale(double sx, double sy, double sz) | |
| setToRotation | back to summary |
|---|---|
| public void setToRotation(double theta, double axisX, double axisY, double axisZ, double pivotX, double pivotY, double pivotZ) | |
| setToRotation | back to summary |
|---|---|
| public void setToRotation(double theta, double axisX, double axisY, double axisZ) | |
| setToScale | back to summary |
|---|---|
| public void setToScale(double sx, double sy, double sz) | |
| setToTranslation | back to summary |
|---|---|
| public void setToTranslation(double tx, double ty, double tz) | |
| setTransform | back to summary |
|---|---|
| public void setTransform(BaseTransform transform) Implements abstract com.
| |
| setTransform | back to summary |
|---|---|
| public void setTransform(double mxx, double mxy, double mxz, double mxt, double myx, double myy, double myz, double myt, double mzx, double mzy, double mzz, double mzt) | |
| shear | back to summary |
|---|---|
| public void shear(double shx, double shy) Overrides com. Doc from com. Concatenates this transform with a shearing transformation.
This is equivalent to calling concatenate(SH), where SH is an
[ 1 shx 0 ]
[ shy 1 0 ]
[ 0 0 1 ]
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Returns a | |
| transform | back to summary |
|---|---|
| public BaseBounds transform(BaseBounds src, BaseBounds dst) Overrides com.
| |
| transform | back to summary |
|---|---|
| public Vec3d transform(Vec3d src, Vec3d dst) Overrides com. Implements com.
| |
| translate | back to summary |
|---|---|
| public void translate(double tx, double ty) Overrides com. Doc from com. Concatenates this transform with a translation transformation.
This is equivalent to calling concatenate(T), where T is an
[ 1 0 tx ]
[ 0 1 ty ]
[ 0 0 1 ]
| |
| translate | back to summary |
|---|---|
| public void translate(double tx, double ty, double tz) | |
| updateState | back to summary |
|---|---|
| protected void updateState() Overrides com. Doc from com. Manually recalculates the state of the transform when the matrix changes too much to predict the effects on the state. The following table specifies what the various settings of the state field say about the values of the corresponding matrix element fields. Note that the rules governing the SCALE fields are slightly different depending on whether the SHEAR flag is also set.
SCALE SHEAR TRANSLATE
m00/m11 m01/m10 m02/m12
IDENTITY 1.0 0.0 0.0
TRANSLATE (TR) 1.0 0.0 not both 0.0
SCALE (SC) not both 1.0 0.0 0.0
TR | SC not both 1.0 0.0 not both 0.0
SHEAR (SH) 0.0 not both 0.0 0.0
TR | SH 0.0 not both 0.0 not both 0.0
SC | SH not both 0.0 not both 0.0 0.0
TR | SC | SH not both 0.0 not both 0.0 not both 0.0
| |