ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 #ifndef __AEDGE_H 00014 #define __AEDGE_H 00015 00016 //-- Project includes -- 00017 #include "Foundation/vec3.h" 00018 00027 class AEdge 00028 { 00029 protected: 00030 Vec3 m_p0,m_p1; 00031 00032 public: 00033 AEdge(const Vec3&,const Vec3&); 00034 virtual ~AEdge(); 00035 00036 double sep(const Vec3&) const; 00037 pair<bool,double> dist(const Vec3&) const ; // signed separation according to direction of the normal 00038 Vec3 getBoundingBoxMin() const; 00039 Vec3 getBoundingBoxMax() const; 00040 }; 00041 #endif // __AEDGE_H