1 #ifndef MSP_GEOMETRY_BOX_H_
2 #define MSP_GEOMETRY_BOX_H_
10 The three-dimensional special case of a HyperBox. This class exists for
11 convenience only and does not provide any extra functionality over the base
15 class Box: public HyperBox<T, 3>
19 explicit Box(const LinAl::Vector<T, 3> &d): HyperBox<T, 3>(d) { }
20 Box(T w, T h, T d): HyperBox<T, 3>(LinAl::Vector<T, 3>(w, h, d)) { }
22 T get_width() const { return this->get_dimension(0); }
23 T get_height() const { return this->get_dimension(1); }
24 T get_depth() const { return this->get_dimension(2); }
27 } // namespace Geometry