]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/bezier.cc
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / lily / bezier.cc
index e2c099b31b9205a46645d7a5cc68edb48b3581f0..eacd4fe6a44e95f224d6a9f4894455198167710a 100644 (file)
@@ -21,8 +21,6 @@
 #include "warn.hh"
 #include "libc-extension.hh"
 
-using std::vector;
-
 Real binomial_coefficient_3[]
 =
 {
@@ -40,9 +38,9 @@ scale (vector<Offset> *array, Real x, Real y)
 }
 
 void
-rotate (vector<Offset> *array, Real phi)
+rotate (vector<Offset> *array, Real deg)
 {
-  Offset rot (complex_exp (Offset (0, phi)));
+  Offset rot (offset_directed (deg));
   for (vsize i = 0; i < array->size (); i++)
     (*array)[i] = complex_multiply (rot, (*array)[i]);
 }
@@ -324,9 +322,9 @@ Bezier::scale (Real x, Real y)
 }
 
 void
-Bezier::rotate (Real phi)
+Bezier::rotate (Real deg)
 {
-  Offset rot (complex_exp (Offset (0, phi)));
+  Offset rot (offset_directed (deg));
   for (int i = 0; i < CONTROL_COUNT; i++)
     control_[i] = complex_multiply (rot, control_[i]);
 }