The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Check if a point is inside of a path with curves.

Changes made to libbirdfont/StrokeTool.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/StrokeTool.vala +++ libbirdfont/StrokeTool.vala @@ -19,7 +19,7 @@ public class StrokeTool : Tool { - static bool stroke_selected = false; + public static bool stroke_selected = false; static int iterations = 0; public StrokeTool (string tooltip) { @@ -1082,7 +1082,7 @@ && is_flat (x1, y1, x2, y2, x3, y3, tolerance); } - static bool is_flat (double x1, double y1, double x2, double y2, double x3, double y3, double tolerance = 0.01) { + public static bool is_flat (double x1, double y1, double x2, double y2, double x3, double y3, double tolerance = 0.01) { double ds = Path.distance (x1, x3, y1, y3); double d1 = Path.distance (x1, x2, y1, y2); double d2 = Path.distance (x2, x3, y2, y3);