diff options
Diffstat (limited to 'intern/cycles/util/util_boundbox.h')
-rw-r--r-- | intern/cycles/util/util_boundbox.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/intern/cycles/util/util_boundbox.h b/intern/cycles/util/util_boundbox.h index 624a911a3f5..6dd1c6c71e8 100644 --- a/intern/cycles/util/util_boundbox.h +++ b/intern/cycles/util/util_boundbox.h @@ -182,9 +182,15 @@ public: bottom == other.bottom && top == other.top); } - float width() {return right - left;} + float width() + { + return right - left; + } - float height() {return bottom - top;} + float height() + { + return top - bottom; + } BoundBox2D operator*(float f) const { |