]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/skyline-pair.cc
Doc: NR - Pitches.itely - dodecaphonic-no-repeat text alt
[lilypond.git] / lily / skyline-pair.cc
index bbfe9234fcd9dbdc44eb3e33de244d3a61f85771..d6bd5fb6fe085b475352c19c2f35d12e46558773 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2008--2012 Han-Wen Nienhuys <hanwen@lilypond.org>
+  Copyright (C) 2008--2014 Han-Wen Nienhuys <hanwen@lilypond.org>
 
 
   LilyPond is free software: you can redistribute it and/or modify
@@ -90,6 +90,18 @@ Skyline_pair::print () const
   skylines_[DOWN].print ();
 }
 
+Real
+Skyline_pair::left () const
+{
+  return min (skylines_[UP].left (), skylines_[DOWN].left ());
+}
+
+Real
+Skyline_pair::right () const
+{
+  return max (skylines_[UP].right (), skylines_[DOWN].right ());
+}
+
 void
 Skyline_pair::print_points () const
 {