The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Create a library of the Graphics Gems code

Changes made to libbirdfont/Path.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/Path.vala +++ libbirdfont/Path.vala @@ -16,9 +16,6 @@ using Math; namespace BirdFont { - - [CCode (cname = "fit_bezier_curve_to_line")] - public extern static Path fit_bezier_curve_to_line (Path lines, int start, int stop, double error); public enum Direction { CLOCKWISE, @@ -2369,22 +2366,8 @@ start.get_right_handle ().move_to_coordinate (x1, y1); end.get_left_handle ().move_to_coordinate (x2, y2); - } - - public int size () { - return points.size; - } - - public double get_x_at (int i) { - return_val_if_fail (0 <= i < points.size, 0); - return points.get (i).x; - } - - public double get_y_at (int i) { - return_val_if_fail (0 <= i < points.size, 0); - return points.get (i).y; } } }