Transform
Overview
This class provides functions to perform rotating, scaling, shearing, and translation transformations for Affine objects.
Example:
Rectangle { width: 50 height: 50 fill:Color.RED transforms: Transform.rotate(45,0,0); //rotate by 45 degress }
Profile: common
Variable Summary
| name | type | Default Value | description |
|---|
Function Summary
-
- affine( mxx: Number myx: Number mxy: Number myy: Number tx: Number ty: Number ) : Transform
-
Returns a new
linkAffineobject from 12 number values representing the 6 specifiable entries of the 3x4 Affine transformation matrix.Returns a new
Affineobject from 12 number values representing the 6 specifiable entries of the 3x4 Affine transformation matrix.- Parameters
- mxx
-
- myx
-
- mxy
-
- myy
-
- tx
-
- ty
-
Profile: common
-
-
- affine( mxx: Number mxy: Number mxz: Number tx: Number myx: Number myy: Number myz: Number ty: Number mzx: Number mzy: Number mzz: Number tz: Number ) : Transform
-
Returns a new
linkAffineobject from 12 number values representing the 12 specifiable entries of the 3x4 Affine transformation matrix.Returns a new
Affineobject from 12 number values representing the 12 specifiable entries of the 3x4 Affine transformation matrix.- Parameters
- mxx
-
- mxy
-
- mxz
-
- tx
-
- myx
-
- myy
-
- myz
-
- ty
-
- mzx
-
- mzy
-
- mzz
-
- tz
-
Profile: common
-
-
- translate( x: Number y: Number ) : Transform
-
Returns a
Translateobject representing a translation transformation.This is equivalent to:
Translate { x: x y: y }
linkReturns a
Translateobject representing a translation transformation.This is equivalent to:
Translate { x: x y: y }
- Parameters
- x
-
- y
-
Profile: common
-
-
- rotate( angle: Number pivotX: Number pivotY: Number ) : Transform
-
Returns a
Rotateobject that rotates coordinates around a pivot point.This is equivalent to:
Rotate{ angle: angle pivotX: pivotX pivotY: pivotY }
linkReturns a
Rotateobject that rotates coordinates around a pivot point.This is equivalent to:
Rotate{ angle: angle pivotX: pivotX pivotY: pivotY }
- Parameters
- angle
-
- pivotX
-
- pivotY
-
Profile: common
-
-
- scale( x: Number y: Number ) : Transform
-
Returns a
Scaleobject representing a scaling transformation.This is equivalent to:
Scale { x: x y: y }
linkReturns a
Scaleobject representing a scaling transformation.This is equivalent to:
Scale { x: x y: y }
- Parameters
- x
-
- y
-
Profile: common
-
-
- scale( x: Number y: Number pivotX: Number pivotY: Number ) : Transform
-
Returns a
Scaleobject representing a scaling transformation. The returned scale operation will be about the given pivot point.This is equivalent to:
Scale { x: x y: y pivotX: pivotX pivotY: pivotY }
linkReturns a
Scaleobject representing a scaling transformation. The returned scale operation will be about the given pivot point.This is equivalent to:
Scale { x: x y: y pivotX: pivotX pivotY: pivotY }
- Parameters
- x
-
- y
-
- pivotX
-
- pivotY
-
Profile: common
-
-
-
-
-
