Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicmxxNumber1.0

Defines the X coordinate scaling element of the 2x3 matrix.

publicmxyNumber0.0

Defines the X coordinate shearing element of the 2x3 matrix.

publicmyxNumber0.0

Defines the Y coordinate shearing element of the 2x3 matrix.

publicmyyNumber1.0

Defines the Y coordinate scaling element of the 2x3 matrix.

publictxNumber0.0

Defines the X coordinate translation element of the 2x3 matrix.

publictyNumber0.0

Defines the Y coordinate translation element of the 2x3 matrix.

Inherited Variables

javafx.scene.transform.Transform

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription

Inherited Functions

javafx.scene.transform.Transform

public impl_mul(transform: com.sun.javafx.geom.AffineTransform) : Void
Parameters
transform