Function: rotation()
rotation(
angle,pivot?):Affine
Defined in: affine.ts:73
Create a rotation transform.
Rotates counter-clockwise by angle degrees about the given pivot point
(defaults to the origin (0, 0)). Ported from the Python
affine library.
Parameters
angle
number
Rotation angle in degrees, counter-clockwise about the pivot.
pivot?
readonly [number, number] = ...
Optional pivot point [px, py]. Defaults to [0, 0].
Returns
Transform that applies the given rotation.