library of assembled shared sources |
http://lass.cocamware.com |
#include <min_max_policy.h>
Static Public Member Functions | |
template<typename PointType > | |
static void | setMin (PointType &oMin, PointType &ioMax, const PointType &iMin) |
set value oMin to iMin and move ioMax (if necessary) so it stays correct. | |
template<typename PointType > | |
static void | setMax (PointType &ioMin, PointType &oMax, const PointType &iMax) |
set value oMax to iMax and move ioMin (if necessary) so it stays correct. | |
template<typename PointType > | |
static void | checkMinMax (PointType &, PointType &) |
correct ioMin and ioMax so that they are indeed then minimum and maximum. |
If you're using this policy, it's your responsibility to give the AABB correct values so it stays valid. If you don't, you'll get what we call undefined behaviour. Have fun :)
The rest of the class are implementation details for the AABB and should not be called by the client (you :). In short we can say of this policy: if you try to do something stupid, you get undefined behaviour.
Definition at line 270 of file min_max_policy.h.
static void lass::prim::UncheckedMinMax::setMin | ( | PointType & | oMin, | |
PointType & | ioMax, | |||
const PointType & | iMin | |||
) | [inline, static] |
set value oMin to iMin and move ioMax (if necessary) so it stays correct.
Definition at line 275 of file min_max_policy.h.
static void lass::prim::UncheckedMinMax::setMax | ( | PointType & | ioMin, | |
PointType & | oMax, | |||
const PointType & | iMax | |||
) | [inline, static] |
set value oMax to iMax and move ioMin (if necessary) so it stays correct.
Definition at line 283 of file min_max_policy.h.
static void lass::prim::UncheckedMinMax::checkMinMax | ( | PointType & | , | |
PointType & | ||||
) | [inline, static] |
correct ioMin and ioMax so that they are indeed then minimum and maximum.
Definition at line 291 of file min_max_policy.h.
Generated on Mon Nov 10 14:22:13 2008 for Library of Assembled Shared Sources by 1.5.7.1 |