point: add static const member ORIGIN

This commit is contained in:
Danny Robson 2015-01-05 18:08:20 +11:00
parent 36a80c33a9
commit 7007b76db6
2 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,10 @@ util::point<S,T>::sanity (void) const {
}
//-----------------------------------------------------------------------------
template <size_t S, typename T>
const util::point<S,T> util::point<S,T>::ORIGIN (T {0});
//-----------------------------------------------------------------------------
template <size_t S, typename T>
util::point<S,T>

View File

@ -61,6 +61,8 @@ namespace util {
template <size_t D> point<D,T> redim (void) const;
static const point<S,T> ORIGIN;
void sanity (void) const;
};