diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-06 16:42:27 +0100 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-06 16:42:27 +0100 |
commit | 96167c7e44272d23f55735f276b14e64e30179fa (patch) | |
tree | 9c3be28998cbf26f6cb584c25e7e6d663b6696f6 /range.h | |
parent | 6b6a46108e662073c9eb5d7a38506c9124a1c69e (diff) | |
download | dbmodel-96167c7e44272d23f55735f276b14e64e30179fa.tar.xz |
Add support for multi-segment connection lines
Diffstat (limited to 'range.h')
-rw-r--r-- | range.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -33,6 +33,7 @@ public: bool isNull() const { return m_max == m_min; } T length() const { return m_max - m_min; } + T center() const { return m_min + length() / 2; } Range<T> intersected(const Range<T> &other) const { |