]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/offset.cc
use _degrees to signify functions taking degree angles.
[lilypond.git] / flower / offset.cc
index d7ba41928336aed995de096f110d6c0a9793c78c..086147188253c81e5e35e8a30f219e3307e3a7ff 100644 (file)
@@ -74,6 +74,11 @@ Offset::arg () const
   return atan2 (coordinate_a_[Y_AXIS], coordinate_a_[X_AXIS]);
 }
 
+Real
+Offset::angle_degrees () const
+{
+  return arg () * 180 / M_PI;
+}
 /**
    euclidian vector length / complex modulus
 */