intersectsSegment2 method

bool intersectsSegment2(
  1. Polygon polygon,
  2. double x1,
  3. double y1,
  4. double x2,
  5. double y2,
)

Returns true if the polygon contains any part of the line segment.

Implementation

bool intersectsSegment2(Polygon polygon, double x1, double y1, double x2, double y2) {
  final result = SpineBindings.bindings
      .spine_skeleton_bounds_intersects_segment_2(_ptr, polygon.nativePtr.cast(), x1, y1, x2, y2);
  return result;
}