00001 #ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_IS_TRIANGLE_OBTUSE_H 00002 #define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_IS_TRIANGLE_OBTUSE_H 00003 // 00004 // OpenTissue Template Library 00005 // - A generic toolbox for physics-based modeling and simulation. 00006 // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. 00007 // 00008 // OTTL is licensed under zlib: http://opensource.org/licenses/zlib-license.php 00009 // 00010 #include <OpenTissue/configuration.h> 00011 00012 #include <OpenTissue/core/geometry/geometry_is_angle_obtuse.h> 00013 00014 namespace OpenTissue 00015 { 00016 namespace geometry 00017 { 00028 template<typename vector_type> 00029 bool is_triangle_obtuse(vector_type const & p,vector_type const & pi,vector_type const & pj) 00030 { 00031 return( is_angle_obtuse(p,pi,pj) 00032 || is_angle_obtuse(pi,pj,p) 00033 || is_angle_obtuse(pj,p,pi) 00034 ); 00035 } 00036 00037 } // namespace geometry 00038 } // namespace OpenTissue 00039 00040 //OPENTISSUE_CORE_GEOMETRY_GEOMETRY_IS_TRIANGLE_OBTUSE_H 00041 #endif