Library of Assembled Shared Sources
MinMaxPolicy

Detailed Description

Policies to specify how an AABB traits misbehaving minima and maxima.

Author
Bram de Greve
Date
2003

The way an AABB handles its minima and maxima can be set by the template parameter MinMaxPolicy. One policy StrictMinMax will enforce you to use correct minima and maxima, and on any suspicious behaviour, it will throw an exception. And other policy AutoMinMax will try to correct misbehaviour without your notice. The third one is UncheckedMinMax and will ignore all errors in favour of faster code, but leading to undefined behaviour if you misbehave.

For more information on these policies, I refer to the documentation compagning these policies.

The content of the policies are rather implementation details, clients shouldn't worry about it.

Note
these policies can be used for points of any dimension.

Data Structures

class  lass::prim::MinMaxError
 Exception thrown by StrictMinMax. More...
 
struct  lass::prim::StrictMinMax
 MinMaxPolicy enforcing strict rules for the minima and maxima. More...
 
struct  lass::prim::AutoMinMax
 MinMaxPolicy automatically correcting wrong minima and maxima. More...
 
struct  lass::prim::UncheckedMinMax
 MinMaxPolicy that makes it your responsibility to behave well. More...