Ejemplo n.º 1
0
bool Line2::operator!=(const Line2& r) const
{
  return origin() != r.origin() || direction() != r.direction();  
}
Ejemplo n.º 2
0
bool Polygon2d::intersects(const Line2& l) const
{
    // FIXME! We need to do something with the bounds.
    return Polygon2d::intersects(l.origin(), l.direction(), LineSegment);
}
Ejemplo n.º 3
0
// Operators
bool Line2::operator==(const Line2& r) const
{
  return origin() == r.origin() && direction() == r.direction();
}