region: add dimension and value_type constants

for interoperability with vector and point classes
This commit is contained in:
Danny Robson 2015-02-16 23:35:19 +11:00
parent 0db3188a49
commit f7f84ef6b8

View File

@ -34,6 +34,9 @@ namespace util {
typedef T position_type; typedef T position_type;
typedef T size_type; typedef T size_type;
static constexpr size_t dimension = 2u;
typedef T value_type;
position_type x, y; position_type x, y;
size_type w, h; size_type w, h;