• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

/home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/OpenTissue/core/geometry/geometry_is_angle_obtuse.h

Go to the documentation of this file.
00001 #ifndef OPENTISSUE_CORE_GEOMETRY_GEOMETRY_IS_ANGLE_OBTUSE_H
00002 #define OPENTISSUE_CORE_GEOMETRY_GEOMETRY_IS_ANGLE_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 namespace OpenTissue
00013 {
00014   namespace geometry
00015   {
00016 
00027     template<typename vector_type>
00028     bool is_angle_obtuse(vector_type const & p,vector_type const & pi,vector_type const & pj)
00029     {
00030       vector_type u = pi-p;
00031       vector_type v = pj-p;
00032       return ((u*v) < 0);
00033     }
00034 
00035   } // namespace geometry
00036 } // namespace OpenTissue
00037 
00038 //OPENTISSUE_CORE_GEOMETRY_GEOMETRY_IS_ANGLE_OBTUSE_H
00039 #endif

Generated on Thu Dec 1 2011 12:51:42 for HUMIM Tracker by  doxygen 1.7.1