public class Affine extends Transform
The Affine class represents an affine transform. An affine
transform performs a linear mapping from 2D/3D coordinates to other 2D/3D
coordinates while preserving the "straightness" and "parallelness"
of lines.
Affine transformations can be constructed using sequence rotations,
translations, scales, and shears.
Note: application developers should not normally use this class directly,
but instead use the specific Translate, Scale,
Rotate, or Shear transforms instead.
Such a coordinate transformation can be represented by a 3 row by
4 column matrix. This matrix transforms source coordinates (x,y,z)
into destination coordinates (x',y',z') by considering
them to be a column vector and multiplying the coordinate vector
by the matrix according to the following process:
[ x'] [ mxx mxy mxz tx ] [ x ] [ mxx * x + mxy * y + mxz * z + tx ]
[ y'] = [ myx myy myz ty ] [ y ] = [ myx * x + myy * y + myz * z + ty ]
[ z'] [ mzx mzy mzz tz ] [ z ] [ mzx * x + mzy * y + mzz * z + tz ]
[ 1 ]
| Type | Property and Description |
|---|---|
DoubleProperty |
mxx
Defines the X coordinate scaling element of the 3x4 matrix.
|
DoubleProperty |
mxy
Defines the XY coordinate element of the 3x4 matrix.
|
DoubleProperty |
mxz
Defines the XZ coordinate element of the 3x4 matrix.
|
DoubleProperty |
myx
Defines the YX coordinate element of the 3x4 matrix.
|
DoubleProperty |
myy
Defines the Y coordinate scaling element of the 3x4 matrix.
|
DoubleProperty |
myz
Defines the YZ coordinate element of the 3x4 matrix.
|
DoubleProperty |
mzx
Defines the ZX coordinate element of the 3x4 matrix.
|
DoubleProperty |
mzy
Defines the ZY coordinate element of the 3x4 matrix.
|
DoubleProperty |
mzz
Defines the Z coordinate scaling element of the 3x4 matrix.
|
DoubleProperty |
tx
Defines the X coordinate translation element of the 3x4 matrix.
|
DoubleProperty |
ty
Defines the Y coordinate translation element of the 3x4 matrix.
|
DoubleProperty |
tz
Defines the Z coordinate translation element of the 3x4 matrix.
|
| Constructor and Description |
|---|
Affine() |
| Modifier and Type | Method and Description |
|---|---|
double |
getMxx()
Gets the value of the property mxx.
|
double |
getMxy()
Gets the value of the property mxy.
|
double |
getMxz()
Gets the value of the property mxz.
|
double |
getMyx()
Gets the value of the property myx.
|
double |
getMyy()
Gets the value of the property myy.
|
double |
getMyz()
Gets the value of the property myz.
|
double |
getMzx()
Gets the value of the property mzx.
|
double |
getMzy()
Gets the value of the property mzy.
|
double |
getMzz()
Gets the value of the property mzz.
|
double |
getTx()
Gets the value of the property tx.
|
double |
getTy()
Gets the value of the property ty.
|
double |
getTz()
Gets the value of the property tz.
|
DoubleProperty |
mxxProperty()
Defines the X coordinate scaling element of the 3x4 matrix.
|
DoubleProperty |
mxyProperty()
Defines the XY coordinate element of the 3x4 matrix.
|
DoubleProperty |
mxzProperty()
Defines the XZ coordinate element of the 3x4 matrix.
|
DoubleProperty |
myxProperty()
Defines the YX coordinate element of the 3x4 matrix.
|
DoubleProperty |
myyProperty()
Defines the Y coordinate scaling element of the 3x4 matrix.
|
DoubleProperty |
myzProperty()
Defines the YZ coordinate element of the 3x4 matrix.
|
DoubleProperty |
mzxProperty()
Defines the ZX coordinate element of the 3x4 matrix.
|
DoubleProperty |
mzyProperty()
Defines the ZY coordinate element of the 3x4 matrix.
|
DoubleProperty |
mzzProperty()
Defines the Z coordinate scaling element of the 3x4 matrix.
|
void |
setMxx(double value)
Sets the value of the property mxx.
|
void |
setMxy(double value)
Sets the value of the property mxy.
|
void |
setMxz(double value)
Sets the value of the property mxz.
|
void |
setMyx(double value)
Sets the value of the property myx.
|
void |
setMyy(double value)
Sets the value of the property myy.
|
void |
setMyz(double value)
Sets the value of the property myz.
|
void |
setMzx(double value)
Sets the value of the property mzx.
|
void |
setMzy(double value)
Sets the value of the property mzy.
|
void |
setMzz(double value)
Sets the value of the property mzz.
|
void |
setTx(double value)
Sets the value of the property tx.
|
void |
setTy(double value)
Sets the value of the property ty.
|
void |
setTz(double value)
Sets the value of the property tz.
|
java.lang.String |
toString()
Returns a string representation of this
Affine object. |
DoubleProperty |
txProperty()
Defines the X coordinate translation element of the 3x4 matrix.
|
DoubleProperty |
tyProperty()
Defines the Y coordinate translation element of the 3x4 matrix.
|
DoubleProperty |
tzProperty()
Defines the Z coordinate translation element of the 3x4 matrix.
|
public final DoubleProperty mxxProperty
getMxx(),
setMxx(double)public final DoubleProperty mxyProperty
getMxy(),
setMxy(double)public final DoubleProperty mxzProperty
getMxz(),
setMxz(double)public final DoubleProperty txProperty
getTx(),
setTx(double)public final DoubleProperty myxProperty
getMyx(),
setMyx(double)public final DoubleProperty myyProperty
getMyy(),
setMyy(double)public final DoubleProperty myzProperty
getMyz(),
setMyz(double)public final DoubleProperty tyProperty
getTy(),
setTy(double)public final DoubleProperty mzxProperty
getMzx(),
setMzx(double)public final DoubleProperty mzyProperty
getMzy(),
setMzy(double)public final DoubleProperty mzzProperty
getMzz(),
setMzz(double)public final DoubleProperty tzProperty
getTz(),
setTz(double)public final void setMxx(double value)
public final double getMxx()
public final DoubleProperty mxxProperty()
getMxx(),
setMxx(double)public final void setMxy(double value)
public final double getMxy()
public final DoubleProperty mxyProperty()
getMxy(),
setMxy(double)public final void setMxz(double value)
public final double getMxz()
public final DoubleProperty mxzProperty()
getMxz(),
setMxz(double)public final void setTx(double value)
public final double getTx()
public final DoubleProperty txProperty()
getTx(),
setTx(double)public final void setMyx(double value)
public final double getMyx()
public final DoubleProperty myxProperty()
getMyx(),
setMyx(double)public final void setMyy(double value)
public final double getMyy()
public final DoubleProperty myyProperty()
getMyy(),
setMyy(double)public final void setMyz(double value)
public final double getMyz()
public final DoubleProperty myzProperty()
getMyz(),
setMyz(double)public final void setTy(double value)
public final double getTy()
public final DoubleProperty tyProperty()
getTy(),
setTy(double)public final void setMzx(double value)
public final double getMzx()
public final DoubleProperty mzxProperty()
getMzx(),
setMzx(double)public final void setMzy(double value)
public final double getMzy()
public final DoubleProperty mzyProperty()
getMzy(),
setMzy(double)public final void setMzz(double value)
public final double getMzz()
public final DoubleProperty mzzProperty()
getMzz(),
setMzz(double)public final void setTz(double value)
public final double getTz()
public final DoubleProperty tzProperty()
getTz(),
setTz(double)public java.lang.String toString()
Affine object.toString in class java.lang.ObjectAffine object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.