From 8f05902a817421b64c6ae31b6405b6efc260c20c Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:59:00 +0000 Subject: [PATCH] lilypond-0.1.18 --- lily/atom.cc | 14 +++++++++++++- lily/include/atom.hh | 10 +++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/lily/atom.cc b/lily/atom.cc index 0f1f205289..423181603d 100644 --- a/lily/atom.cc +++ b/lily/atom.cc @@ -57,7 +57,7 @@ Atom::TeX_string() const Offset off = off_; /* infinity checks. */ - for (int a =X_AXIS; a < NO_AXES; a++) + for (int a = X_AXIS; a < NO_AXES; a++) { Axis ax = (Axis)a; if (abs (off[ax]) >= 100 CM) @@ -75,3 +75,15 @@ Atom::TeX_string() const s += tex_str + "}"; return s; } + +void +Atom::translate (Real r, Axis a) +{ + off_[a] += r; +} + +void +Atom::translate (Offset o) +{ + off_ += o; +} diff --git a/lily/include/atom.hh b/lily/include/atom.hh index d25942c336..66c4a6cbba 100644 --- a/lily/include/atom.hh +++ b/lily/include/atom.hh @@ -22,13 +22,9 @@ struct Atom { String str() const; // for printing. Atom (String, Box); - Atom (); - void translate (Offset o) { - off_ += o; - } - void translate (Real r,Axis a){ - off_[a] += r; - } + Atom (); + void translate (Offset o); + void translate (Real r,Axis a); /// how big is #this#? Box extent() const; void print() const; -- 2.39.5