Class Index | File Index

Classes


Class CAAT.Math.Matrix


Defined in: Matrix.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
An array of 9 numbers.
Method Summary
Method Attributes Method Name and Description
<private>  
 
copy(matrix)
Copy into this matrix the given matrix values.
 
Creates a new inverse matrix from this matrix.
 
Set this matrix to the identity matrix.
 
Multiply this matrix by a given matrix.
 
Multiply this matrix by a scalar.
 
Premultiply this matrix by a given matrix.
 
rotate(angle)
Create a new rotation matrix and set it up for the specified angle in radians.
 
scale(scalex, scaley)
Create a scale matrix.
 
 
setModelViewMatrix(x, y, sx, sy, r)
 
setRotation(angle)
 
setScale(scalex, scaley)
 
Sets this matrix as a translation matrix.
 
Transform a point by this matrix.
 
 
 
 
 
translate(x, y)
Create a translation matrix.
Class Detail
CAAT.Math.Matrix()
Field Detail
matrix
An array of 9 numbers.
Method Detail
<private> __init()

copy(matrix)
Copy into this matrix the given matrix values.
Parameters:
matrix
{CAAT.Matrix}
Returns:
this

{CAAT.Matrix} getInverse()
Creates a new inverse matrix from this matrix.
Returns:
{CAAT.Matrix} an inverse matrix.

identity()
Set this matrix to the identity matrix.
Returns:
this

multiply(m)
Multiply this matrix by a given matrix.
Parameters:
m
{CAAT.Matrix}
Returns:
this

multiplyScalar(scalar)
Multiply this matrix by a scalar.
Parameters:
scalar
{number} scalar value
Returns:
this

premultiply(m)
Premultiply this matrix by a given matrix.
Parameters:
m
{CAAT.Matrix}
Returns:
this

{CAAT.Matrix} rotate(angle)
Create a new rotation matrix and set it up for the specified angle in radians.
Parameters:
angle
{number}
Returns:
{CAAT.Matrix} a matrix object.

{CAAT.Matrix} scale(scalex, scaley)
Create a scale matrix.
Parameters:
scalex
{number} x scale magnitude.
scaley
{number} y scale magnitude.
Returns:
{CAAT.Matrix} a matrix object.

setCoordinateClamping(clamp)
Parameters:
clamp

setModelViewMatrix(x, y, sx, sy, r)
Parameters:
x
y
sx
sy
r

setRotation(angle)
Parameters:
angle

setScale(scalex, scaley)
Parameters:
scalex
scaley

setTranslate(x, y)
Sets this matrix as a translation matrix.
Parameters:
x
y

{CAAT.Point} transformCoord(point)
Transform a point by this matrix. The parameter point will be modified with the transformation values.
Parameters:
point
{CAAT.Point}.
Returns:
{CAAT.Point} the parameter point.

transformRenderingContext_Clamp(ctx)
Parameters:
ctx

transformRenderingContext_NoClamp(ctx)
Parameters:
ctx

transformRenderingContextSet_Clamp(ctx)
Parameters:
ctx

transformRenderingContextSet_NoClamp(ctx)
Parameters:
ctx

{CAAT.Matrix} translate(x, y)
Create a translation matrix.
Parameters:
x
{number} x translation magnitude.
y
{number} y translation magnitude.
Returns:
{CAAT.Matrix} a matrix object.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)