public bool Intersects(Line2D line) { return(EdgeAB.SafeIntersect(line) || EdgeBC.SafeIntersect(line) || EdgeCA.SafeIntersect(line)); }
public bool SafeIntersect(Line2D other) { Vector2D v; return(SafeIntersect(other, out v)); }
public bool Intersect(Line2D other) { Vector2D intersectionPoint; return(Intersect(other, out intersectionPoint)); }
// Returns if line is the same. Checks both directions public bool IsPositionEqual(Line2D other) { return((Start.IsPositionEqual(other.Start)) && (End.IsPositionEqual(other.End)) || (Start.IsPositionEqual(other.End)) && (End.IsPositionEqual(other.Start))); }