Library of Assembled Shared Sources
lass::prim::UncheckedMinMax Struct Reference

MinMaxPolicy that makes it your responsibility to behave well. More...

#include <min_max_policy.h>

Static Public Member Functions

template<typename PointType>
static void setMin (PointType &oMin, PointType &, const PointType &iMin)
 set value oMin to iMin and move ioMax (if necessary) so it stays correct.
 
template<typename PointType>
static void setMax (PointType &, 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.
 

Detailed Description

MinMaxPolicy that makes it your responsibility to behave well.

Author
Bram de Greve
Date
2003

The unchecked policy is the fastest policy of the pool. It will silently expects you to provide correct min/max values and ignores all invalid states caused by you. That way it can avoid all checks and it will be faster than the other to in speed ciritical situations.

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 271 of file min_max_policy.h.


The documentation for this struct was generated from the following file: