Exemple #1
0
bool ConvexPolygon::envelopes(const ConvexPolygon &polygon) const
{
    for(const Point &p : polygon.vertices())
        if(!hasPoint(p))
            return false;
    return true;
}
Exemple #2
0
    bool addEdge(const QPoint& point)
    {
      if(m_count == SIZE || hasPoint(point))
        return false;

      m_pointList[m_count++] = point;
      return true;
    }
Exemple #3
0
void
DiracKernelInfo::addPoint(const Elem * elem, Point p)
{
  _elements.insert(elem);

  if (!hasPoint(elem, p))
  {
    std::vector<Point> & point_list = _points[elem];
    point_list.push_back(p);
  }
}