extent: add scalar constructor
This commit is contained in:
parent
29a148e2e5
commit
22a492e58a
@ -35,6 +35,13 @@ util::extent<T>::extent (const T _width, const T _height):
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
util::extent<T>::extent (T t):
|
||||
extent (t, t)
|
||||
{ ; }
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
util::extent<T>::extent (vector<2,T> _v):
|
||||
|
@ -34,6 +34,7 @@ namespace util {
|
||||
T w, h;
|
||||
|
||||
extent (const T _width, const T _height);
|
||||
extent (T);
|
||||
extent (vector<2,T>);
|
||||
extent (const extent&);
|
||||
extent& operator= (const extent&);
|
||||
|
Loading…
Reference in New Issue
Block a user