Add clamp() member function to constrain Offsets and Coords to a bounding box
authorMartin Read <martin@blackswordsonics.com>
Tue, 18 Feb 2014 22:41:21 +0000 (22:41 +0000)
committerMartin Read <martin@blackswordsonics.com>
Tue, 18 Feb 2014 22:41:21 +0000 (22:41 +0000)
commit870550d975d2036fc08659acbe1515fb7c896ba4
tree6e5e52b514ae2edc27c7ef1c474fa321677df8bb
parentd3a8692b15003ba07a46fd3326b629e4b37f23a5
Add clamp() member function to constrain Offsets and Coords to a bounding box

* coord.hh: Added Offset::clamp() and Coord::clamp() member functions which
  constrain the x and y values to fit inside a specified bounding box.
coord.hh