../../Developer.FoundationDotJS.org/wwwroot/Library/Foundation.Geometry.js
Foundation
Object
All Implemented Interfaces:
Foundation.TMatrix
implementsFoundation.Class
Two dimensional transformation class with a, b, c, d, tx, ty, u, v and w.
Constructor Summary |
|
Field Summary | |
| a
The a value of the matrix.
|
| b
The b value of the matrix.
|
| c
The c value of the matrix.
|
| d
The d value of the matrix.
|
| tx
The ty value of the matrix.
|
| ty
The tx value of the matrix.
|
| u
The u value of the matrix.
|
| v
The v value of the matrix.
|
| w
The w value of the matrix.
|
Method Summary | |
|
Creates a copy of the transformation matrix.
|
|
|
static |
Creates an identity
Foundation.TMatrix . |
|
Alters the rotation portion of the matrix by an angle.
|
|
Alters the scale portion of the matrix by point values.
|
|
Alters the scale portion of the matrix by x and y values.
|
|
A string representation of the transformation matrix.
|
|
Alters the translatation portion of the matrix by a point.
|
|
Alters the translatation portion of the matrix by x and y values.
|
Methods inherited from Foundation.Class |
getTypePath , isInstanceOf |
Constructor Detail |
Foundation.TMatrix(/*Number
*/ a,
/*Number
*/ b,
/*Number
*/ c,
/*Number
*/ d,
/*Number
*/ tx,
/*Number
*/ ty,
/*Number
*/ u,
/*Number
*/ v,
/*Number
*/ w)
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 |
Number
a
The a value of the matrix.
Number
b
The b value of the matrix.
Number
c
The c value of the matrix.
Number
d
The d value of the matrix.
Number
tx
The ty value of the matrix.
Number
ty
The tx value of the matrix.
Number
u
The u value of the matrix.
Number
v
The v value of the matrix.
Number
w
The w value of the matrix.
Method Detail |
TMatrix
clone()
Creates a copy of the transformation matrix.
Returns:
dispose()
dispose
in class Class
static TMatrix
getIdentity()
Creates an identity Foundation.TMatrix
.
[this]
rotate(/*Number
*/ radians)
Alters the rotation portion of the matrix by an angle.
Parameters:radians -The angle (in radians) to rotate by.
[this]
scale(/*Point
*/ point)
Alters the scale portion of the matrix by point values.
Parameters:point -Point to scale by.
[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.
String
toString()
A string representation of the transformation matrix.
Overrides:toString
in class Class
[this]
translate(/*Point
*/ point)
Alters the translatation portion of the matrix by a point.
Parameters:point -Point to translate by.
[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.