Class: Matrix33

Matrix33

3 by 3 Matrix

 a b 0
 c d 0
 e f 1

new Matrix33( [a] [, b] [, c] [, d] [, e] [, f])

Parameters:
Name Type Argument Default Description
a number <optional>
0
b number <optional>
0
c number <optional>
0
d number <optional>
0
e number <optional>
0
f number <optional>
0

Methods


generateSVGString()

Returns:
Type
string

get(rowId, columnId)

Returns one of the value of the matrix corresponding to row and column given as parameter

Parameters:
Name Type Description
rowId number

zero based

columnId number

zero based

Returns:
Type
number

getA()

Returns:
Type
number

getB()

Returns:
Type
number

getC()

Returns:
Type
number

getD()

Returns:
Type
number

getE()

Returns:
Type
number

getF()

Returns:
Type
number

matrixMultiply(matrixToMultiply)

Multiply this matrix with another and returns a new one

Parameters:
Name Type Description
matrixToMultiply olympe.utils.Matrix33
Returns:
Type
olympe.utils.Matrix33

set(rowId, columnId, value)

Sets a value in the matrix

Parameters:
Name Type Description
rowId number
columnId number
value number

<static> createRotationMatrix(alpha [, x] [, y])

Creates a rotation matrix, alpha is in radian

Parameters:
Name Type Argument Default Description
alpha number
x number <optional>
0
y number <optional>
0
Returns:
Type
olympe.utils.Matrix33

<static> createTranslationMatrix(x [, y])

Creates a translation matrix

Parameters:
Name Type Argument Description
x number
y number <optional>
Returns:
Type
olympe.utils.Matrix33