Returns a 2x3 affine transformation matrix that scales by (fx, fy)
around centre (cx, cy) (1-based pixel coordinates).
Usage
affine_scale(fx, fy, cx = 1, cy = 1)
Arguments
- fx
Numeric. Horizontal scale factor.
- fy
Numeric. Vertical scale factor.
- cx
Numeric. X coordinate of the scale centre (1-based). Default
1 (top-left; produces a pure scale with no translation).
- cy
Numeric. Y coordinate of the scale centre (1-based). Default
1.
Value
A 2x3 numeric matrix.