hasInvalidIntersection method

bool hasInvalidIntersection(
  1. LineSegment seg0,
  2. LineSegment seg1
)

Implementation

bool hasInvalidIntersection(LineSegment seg0, LineSegment seg1) {
  //-- segments must not be equal
  if (seg0.equalsTopo(seg1)) return true;
  li.computeIntersection(seg0.p0, seg0.p1, seg1.p0, seg1.p1);
  return li.isInteriorIntersection();
}