X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgeometry%2Fbox.h;h=b46eb677c37b7f0c0180505facdfe219f8d22e81;hb=adb812a194961d542dcb0abd61258cbc8723ecd9;hp=bfcfa2f6e02dc343461375f64713563b57750020;hpb=6ff13022b53830d35283905d562c2ef3af198cc1;p=libs%2Fmath.git diff --git a/source/geometry/box.h b/source/geometry/box.h index bfcfa2f..b46eb67 100644 --- a/source/geometry/box.h +++ b/source/geometry/box.h @@ -1,19 +1,23 @@ #ifndef MSP_GEOMETRY_BOX_H_ #define MSP_GEOMETRY_BOX_H_ -#include #include "hyperbox.h" namespace Msp { namespace Geometry { +/** +The three-dimensional special case of a HyperBox. This class exists for +convenience only and does not provide any extra functionality over the base +class. +*/ template class Box: public HyperBox { public: Box() { } explicit Box(const LinAl::Vector &d): HyperBox(d) { } - Box(T w, T h, T d): HyperBox(LinAl::Vector3(w, h, d)) { } + Box(T w, T h, T d): HyperBox(LinAl::Vector(w, h, d)) { } T get_width() const { return this->get_dimension(0); } T get_height() const { return this->get_dimension(1); }