]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/box.cc
Release: update news.
[lilypond.git] / lily / box.cc
index df4770ff7861eada58715e88cea9be1c74ae92da..52af33a142362dc26bcf3f9c94727d7e930d1f3c 100644 (file)
@@ -33,6 +33,13 @@ Box::unite (Box b)
     interval_a_[i].unite (b[i]);
 }
 
+Real
+Box::area () const
+{
+  return interval_a_[X_AXIS].length ()
+         * interval_a_[Y_AXIS].length ();
+}
+
 Box::Box ()
 {
 }