Exemplo n.º 1
0
 public bool intersect(LineSegment other, out Vector2 ptr)
 {
     if (Ccw(other.p1) * Ccw(other.p2) < -1e-4 &&
         other.Ccw(p1) * other.Ccw(p2) < -1e-4)
     {
         ptr = GetLine.GetIntersection(other.GetLine);
         return true;
     }
     ptr = new Vector2();
     return false;
 }