Overview
The Affine
class represents an affine transform. An affine
transform performs a linear mapping from 2D coordinates to other 2D
coordinates while preserving the "straightness" and "parallelness"
of lines.
Affine transformations can be constructed using sequences 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 2 row by
3 column matrix. This matrix transforms source coordinates (x,y)
into destination coordinates (x',y')
by considering
them to be a column vector and multiplying the coordinate vector
by the matrix according to the following process:
[ x'] [ mxx mxy tx ] [ x ] [ mxx * x + mxy * y + tx ] [ y'] = [ myx myy ty ] [ y ] = [ myx * x + myy * y + ty ] [ 1 ]
Profile: common
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | mxx | Number | 1.0 |
Defines the X coordinate scaling element of the 2x3 matrix. |
|||
public | mxy | Number | 0.0 |
Defines the X coordinate shearing element of the 2x3 matrix. |
|||
public | myx | Number | 0.0 |
Defines the Y coordinate shearing element of the 2x3 matrix. |
|||
public | myy | Number | 1.0 |
Defines the Y coordinate scaling element of the 2x3 matrix. |
|||
public | tx | Number | 0.0 |
Defines the X coordinate translation element of the 2x3 matrix. |
|||
public | ty | Number | 0.0 |
Defines the Y coordinate translation element of the 2x3 matrix. |
Inherited Variables
javafx.scene.transform.Transform
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|
Inherited Functions
javafx.scene.transform.Transform
- public impl_mul(transform: com.sun.javafx.geom.AffineTransform) : Void