The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Rotation

Changes made to libsvgbird/SvgTransforms.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libsvgbird/SvgTransforms.vala +++ libsvgbird/SvgTransforms.vala @@ -30,6 +30,14 @@ transforms = new Gee.ArrayList<SvgTransform> (); rotation_matrix = Matrix.identity (); size_matrix = Matrix.identity (); + } + + public double get_rotation () { + Matrix m = get_matrix (); + double w = 1; + double h = 1; + m.transform_distance (ref w, ref h); + return Math.atan2 (h, w); } public void collapse_transforms () {