OpenWalnut
1.5.0dev
|
Unit tests for the WBoundingBox wrapper to osg::BoundingBox. More...
#include <WBoundingBox_test.h>
Public Member Functions | |
void | testForwardingFunctions (void) |
The private subclassing from osg::BoundingBoxImpl makes many member functions private. More... | |
void | testMinimalDistanceBetweenTwoBB (void) |
The minimal distance between two bounding boxes is the minimal distance overall vertices of the first bb to every vertex in the second bb. More... | |
void | testCommutativeIntervalDistance (void) |
The distance should not depend on the order in which the boxes are given. More... | |
void | testBoundingBoxComputation (void) |
Expanding a bounding box by points should update the both corner positions. More... | |
Unit tests for the WBoundingBox wrapper to osg::BoundingBox.
Definition at line 39 of file WBoundingBox_test.h.
|
inline |
Expanding a bounding box by points should update the both corner positions.
Definition at line 84 of file WBoundingBox_test.h.
References wlimits::DBL_EPS, and WBoundingBoxImpl< VT >::expandBy().
|
inline |
The distance should not depend on the order in which the boxes are given.
Definition at line 73 of file WBoundingBox_test.h.
References wlimits::DBL_EPS, and WBoundingBoxImpl< VT >::minDistance().
|
inline |
The private subclassing from osg::BoundingBoxImpl makes many member functions private.
The using directive again will publish those members selectively. This is tested in this test.
Definition at line 46 of file WBoundingBox_test.h.
References WBoundingBoxImpl< VT >::expandBy(), WBoundingBoxImpl< VT >::intersects(), and WBoundingBoxImpl< VT >::reset().
|
inline |
The minimal distance between two bounding boxes is the minimal distance overall vertices of the first bb to every vertex in the second bb.
Definition at line 63 of file WBoundingBox_test.h.
References wlimits::DBL_EPS, and WBoundingBoxImpl< VT >::minDistance().