コード例 #1
0
ファイル: Line2.cpp プロジェクト: ordovician/LusionEngine
bool Line2::operator!=(const Line2& r) const
{
  return origin() != r.origin() || direction() != r.direction();  
}
コード例 #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);
}
コード例 #3
0
ファイル: Line2.cpp プロジェクト: ordovician/LusionEngine
// Operators
bool Line2::operator==(const Line2& r) const
{
  return origin() == r.origin() && direction() == r.direction();
}