diff options
Diffstat (limited to 'anglerange.h')
| -rw-r--r-- | anglerange.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/anglerange.h b/anglerange.h index 6d6d286..f0c9eec 100644 --- a/anglerange.h +++ b/anglerange.h @@ -77,11 +77,13 @@ public: //this function calculates the overlap between this anglerange and another one, returning it as //a new anglerange. - anglerange overlap(const anglerange &other); + anglerange overlap(const anglerange &other) const; //this function does the opposite of overlap: Both ranges are combined into one bigger range. //if they are disjoint, an empty range is given back. - anglerange combine(const anglerange &other); + anglerange combine(const anglerange &other) const; + + //a subtract function is not possible at this level, as single angle ranges could get disjoint by it. bool operator<(const anglerange &other) const; bool operator>(const anglerange &other) const; |
