X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fbezier.hh;h=54acce15fc11b818dbec4801ffbfc3d1fd273dd6;hb=4d405ef96a8a62771d7d9a283ff5369a772e89d8;hp=a144e4a7553447babe424fcd25b087ac1a553815;hpb=f93e4199873c91ae32f0e84a610d14853dc379df;p=lilypond.git diff --git a/lily/include/bezier.hh b/lily/include/bezier.hh index a144e4a755..54acce15fc 100644 --- a/lily/include/bezier.hh +++ b/lily/include/bezier.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1998--2011 Jan Nieuwenhuizen + Copyright (C) 1998--2015 Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -39,13 +39,16 @@ public: Bezier extract (Real, Real) const; Real get_other_coordinate (Axis a, Real x) const; + vector get_other_coordinates (Axis a, Real x) const; vector solve_point (Axis, Real coordinate) const; + Real minmax (Axis, Real, Real, Direction) const; vector solve_derivative (Offset) const; Interval extent (Axis) const; Interval control_point_extent (Axis) const; Polynomial polynomial (Axis)const; Offset curve_point (Real t) const; + Offset dir_at_point (Real t) const; Real curve_coordinate (Real t, Axis) const; static const int CONTROL_COUNT = 4; @@ -59,7 +62,7 @@ public: }; void scale (vector *array, Real xscale, Real yscale); -void rotate (vector *array, Real phi); +void rotate (vector *array, Real deg); void translate (vector *array, Offset o); Bezier slur_shape (Real width, Real height_limit,