1 #ifndef MSP_GEOMETRY_BOX_H_
2 #define MSP_GEOMETRY_BOX_H_
4 #include <msp/linal/vector3.h>
11 class Box: public HyperBox<T, 3>
15 explicit Box(const LinAl::Vector<T, 3> &d): HyperBox<T, 3>(d) { }
16 Box(T w, T h, T d): HyperBox<T, 3>(LinAl::Vector3<T>(w, h, d)) { }
18 T get_width() const { return this->get_dimension(0); }
19 T get_height() const { return this->get_dimension(1); }
20 T get_depth() const { return this->get_dimension(2); }
23 } // namespace Geometry