From be628dc7f9c32ca84674c8717f07cc15a40f333c Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 1 Apr 2018 13:46:47 +0200 Subject: Improve selecting. --- src/math.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/math.hpp') diff --git a/src/math.hpp b/src/math.hpp index 9b909cf..7cbd829 100644 --- a/src/math.hpp +++ b/src/math.hpp @@ -352,6 +352,16 @@ public: return min; } + T area(void) const + { + T area = 1; + + for (size_t i = 0; i < N; i++) + area *= dim(i); + + return area; + } + rect_t norm(void) const { rect_t r; -- cgit