Matrix
constMatrix:object
Building transformation matrices.
Type Declaration
Section titled “Type Declaration”identity
Section titled “identity”
readonlyidentity:Transform
The identity.
after()
Section titled “after()”
readonlyafter(outer,inner):Transform
outer applied after inner: maps p to outer(inner(p)).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”rotate()
Section titled “rotate()”
readonlyrotate(degrees):Transform
A rotation by degrees about the origin, clockwise as displayed.
Parameters
Section titled “Parameters”degrees
Section titled “degrees”number
Returns
Section titled “Returns”scale()
Section titled “scale()”
readonlyscale(sx,sy):Transform
A scaling by sx horizontally and sy vertically.
Parameters
Section titled “Parameters”number
number
Returns
Section titled “Returns”translate()
Section titled “translate()”
readonlytranslate(x,y):Transform
A translation by (x, y) points.
Parameters
Section titled “Parameters”number
number