5 #ifndef _SPICA_BOUNDS2D_H_
6 #define _SPICA_BOUNDS2D_H_
20 Bounds2_(T minx, T miny, T maxx, T maxy);
25 inline const Point2_<T>& posMin()
const {
return posMin_; }
26 inline const Point2_<T>& posMax()
const {
return posMax_; }
27 inline T width()
const {
return posMax_.x() - posMin_.x(); }
28 inline T height()
const {
return posMax_.y() - posMin_.y(); }
34 static_assert(std::is_arithmetic<T>::value,
35 "Template type must be arithmetic!!");
45 #include "bounds2d_detail.h"
47 #endif // _SPICA_BOUNDS2D_H_
Definition: bounds2d.h:16