File: ../../Developer.FoundationDotJS.org/wwwroot/Library/Foundation.Geometry.js

Foundation
Class TMatrix

Object
  
 
 
Foundation.TMatrix

All Implemented Interfaces:

Class


Foundation.TMatrix

implements Foundation.Class

Two dimensional transformation class with a, b, c, d, tx, ty, u, v and w.


Constructor Summary
Foundation.TMatrix(/*Number*/ a, /*Number*/ b, /*Number*/ c, /*Number*/ d, /*Number*/ tx, /*Number*/ ty, /*Number*/ u, /*Number*/ v, /*Number*/ w)

Field Summary
Numbera
The a value of the matrix.
Numberb
The b value of the matrix.
Numberc
The c value of the matrix.
Numberd
The d value of the matrix.
Numbertx
The ty value of the matrix.
Numberty
The tx value of the matrix.
Numberu
The u value of the matrix.
Numberv
The v value of the matrix.
Numberw
The w value of the matrix.

Method Summary
TMatrixclone()
Creates a copy of the transformation matrix.
 dispose()
static TMatrixgetIdentity()
Creates an identity Foundation.TMatrix.
[this]rotate(/*Number*/ radians)
Alters the rotation portion of the matrix by an angle.
[this]scale(/*Point*/ point)
Alters the scale portion of the matrix by point values.
[this]scale(/*Number*/ x, /*Number*/ y)
Alters the scale portion of the matrix by x and y values.
StringtoString()
A string representation of the transformation matrix.
[this]translate(/*Point*/ point)
Alters the translatation portion of the matrix by a point.
[this]translate(/*Number*/ x, /*Number*/ y)
Alters the translatation portion of the matrix by x and y values.

Methods inherited from Foundation.Class
getTypePath, isInstanceOf

Constructor Detail

TMatrix

Foundation.TMatrix(/*Number*/ a,
                   /*Number*/ b,
                   /*Number*/ c,
                   /*Number*/ d,
                   /*Number*/ tx,
                   /*Number*/ ty,
                   /*Number*/ u,
                   /*Number*/ v,
                   /*Number*/ w)
Parameters:
a - 
The a value.
b - 
The b value.
c - 
The c value.
d - 
The d value.
tx - 
The ty value.
ty - 
The tx value.
u - 
(Optional) The u value.
v - 
(Optional) The v value.
w - 
(Optional) The w value.

Field Detail

a

Number a

The a value of the matrix.


b

Number b

The b value of the matrix.


c

Number c

The c value of the matrix.


d

Number d

The d value of the matrix.


tx

Number tx

The ty value of the matrix.


ty

Number ty

The tx value of the matrix.


u

Number u

The u value of the matrix.


v

Number v

The v value of the matrix.


w

Number w

The w value of the matrix.

Method Detail

clone

TMatrix clone()

Creates a copy of the transformation matrix.

Returns:
A new copy of the transformation matrix.

dispose

dispose()
Overrides:
dispose in class Class

getIdentity

static TMatrix getIdentity()

Creates an identity Foundation.TMatrix.

Returns:
The new identity matrix.

rotate

[this] rotate(/*Number*/ radians)

Alters the rotation portion of the matrix by an angle.

Parameters:
radians - 
The angle (in radians) to rotate by.
Returns:
The matrix (this) after alteration.

scale

[this] scale(/*Point*/ point)

Alters the scale portion of the matrix by point values.

Parameters:
point - 
Point to scale by.
Returns:
The matrix (this) after alteration.

scale

[this] scale(/*Number*/ x,
             /*Number*/ y)

Alters the scale portion of the matrix by x and y values.

Parameters:
x - 
X value to scale by.
y - 
Y value to scale by.
Returns:
The matrix (this) after alteration.

toString

String toString()

A string representation of the transformation matrix.

Overrides:
toString in class Class
Returns:
The transformation matrix as a string.

translate

[this] translate(/*Point*/ point)

Alters the translatation portion of the matrix by a point.

Parameters:
point - 
Point to translate by.
Returns:
The matrix (this) after alteration.

translate

[this] translate(/*Number*/ x,
                 /*Number*/ y)

Alters the translatation portion of the matrix by x and y values.

Parameters:
x - 
X value to translate by.
y - 
Y value to translate by.
Returns:
The matrix (this) after alteration.