X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fbezier.cc;h=1eaf041b886e8c782efdd802301b0f2ebf78a60a;hb=05b7a17f1b19c4d978d340483b3c7b9985710232;hp=77f3949992cbf1fb6eaa380245d190aa3da3ec47;hpb=39c26505b5e2af9f0529548dd3b27ffddf499057;p=lilypond.git diff --git a/lily/bezier.cc b/lily/bezier.cc index 77f3949992..1eaf041b88 100644 --- a/lily/bezier.cc +++ b/lily/bezier.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2006 Jan Nieuwenhuizen + (c) 1998--2007 Jan Nieuwenhuizen */ #include "bezier.hh" @@ -14,21 +14,6 @@ Real binomial_coefficient_3[] = { 1, 3, 3, 1 }; -Real -binomial_coefficient (Real over, int under) -{ - Real x = 1.0; - - while (under) - { - x *= over / Real (under); - - over -= 1.0; - under--; - } - return x; -} - void scale (vector *array, Real x, Real y) { @@ -132,7 +117,7 @@ Bezier::curve_point (Real t) const } /* - Cache binom(3,j) t^j (1-t)^{3-j} + Cache binom (3, j) t^j (1-t)^{3-j} */ struct Polynomial_cache { Polynomial terms_[4];