Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_GEOMETRY_AABB_UNION_H
00002 #define OPENTISSUE_CORE_GEOMETRY_AABB_UNION_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace geometry
00015 {
00025 template <typename aabb_type>
00026 aabb_type aabb_union(aabb_type const & A, aabb_type const & B)
00027 {
00028 return aabb_type( min( A.min(), B.min()), max( A.max(), B.max()) );
00029 }
00030
00031 }
00032 }
00033
00034
00035 #endif