Class: xrx.viewbox.FastAffineTransform

xrx.viewbox. FastAffineTransform

(private) new xrx.viewbox.FastAffineTransform()

A class providing optimizations and extensions for class goog.math.AffineTransform.
Source:

Methods

xrx.viewbox.FastAffineTransform#getClone() → {xrx.viewbox.FastAffineTransform}

Returns a temporary clone of this affine transform without allocating a new object.
Source:
Returns:
The clone.
Type
xrx.viewbox.FastAffineTransform

xrx.viewbox.FastAffineTransform#getIdentity() → {xrx.viewbox.FastAffineTransform}

Returns an identity matrix object without allocating a new object.
Source:
Returns:
The identity matrix.
Type
xrx.viewbox.FastAffineTransform

xrx.viewbox.FastAffineTransform#getInverse() → {xrx.viewbox.FastAffineTransform}

Returns an inverse matrix object without allocating a new object.
Source:
Returns:
The inverse matrix.
Type
xrx.viewbox.FastAffineTransform

xrx.viewbox.FastAffineTransform#getRotation() → {number}

Returns the current rotation of this transformation matrix in a normalized form (either 0, 90, 180, or 270).
Source:
Returns:
The rotation in degrees.
Type
number

xrx.viewbox.FastAffineTransform#getScale() → {number}

Returns the current scale of this transformation matrix.
Source:
Returns:
The scale.
Type
number

xrx.viewbox.FastAffineTransform#transformPoint(The, The) → {Array.<number>}

Transforms a coordinate point according to this transformation matrix.
Parameters:
Name Type Description
The Array.<number> coordinate point [x, y] to be transformed.
The Array.<number> target point to store the result of the transformation.
Source:
Returns:
A coordinate point.
Type
Array.<number>