meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
124 stars 28 forks source link

Add Matrix.map() and Matrix.perspective() class creation methods for Matrix. #215

Closed tatarize closed 1 year ago

tatarize commented 1 year ago

This basically permits the mapping of one space to another space. And creating the resulting matrix for that. These are affine transformations since by definition SVG does not support perspective values in their 3x2 matrix. We generally assume we have affine transformations and ignore non-zero values in the Perspective_x Perspective_y values.