コード例 #1
0
ファイル: capsules.hpp プロジェクト: armando-2011/DynamO
 virtual bool test_root(const double& length) const
 {
   double cp = getCollisionPoints();
 
   return  fabs(cp) < 1e-16 ;
 }
コード例 #2
0
ファイル: lines.hpp プロジェクト: pviswanathan/DynamO
 virtual bool test_root() const
 {
   std::pair<double,double> cp = getCollisionPoints();
 
   return (fabs(cp.first) < _length / 2.0 && fabs(cp.second) < _length / 2.0);
 }
コード例 #3
0
ファイル: body.cpp プロジェクト: teqwve/nge
std::vector<Point> getCollisionPoints(Body*a, Body*b) {
    return getCollisionPoints(a->getShape(), b->getShape());
}