Go to the documentation of this file.00001 #ifndef OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IS_POINT_INSIDE_H
00002 #define OPENTISSUE_CORE_CONTAINERS_GRID_UTIL_GRID_IS_POINT_INSIDE_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 namespace OpenTissue
00013 {
00014 namespace grid
00015 {
00026 template<typename grid_type,typename vector3_type>
00027 inline bool is_point_inside( grid_type const & grid, vector3_type const & point )
00028 {
00029 for ( size_t i = 0u;i < 3u;++i )
00030 {
00031 if ( point( i ) <= grid.min_coord( i ) )
00032 return false;
00033 if ( point( i ) >= grid.max_coord( i ) )
00034 return false;
00035 }
00036 return true;
00037 }
00038
00039 }
00040 }
00041
00042
00043 #endif