intersectsLineSegment static method

bool intersectsLineSegment(
  1. num x,
  2. num y,
  3. num w,
  4. num h,
  5. num p1x,
  6. num p1y,
  7. num p2x,
  8. num p2y,
)

This static function is true if a rectangular area is intersected by a finite straight line segment.

Implementation

static _i2.bool intersectsLineSegment(
  _i2.num x,
  _i2.num y,
  _i2.num w,
  _i2.num h,
  _i2.num p1x,
  _i2.num p1y,
  _i2.num p2x,
  _i2.num p2y,
) =>
    _i4.callMethod(
      _declaredRect,
      'intersectsLineSegment',
      [
        x,
        y,
        w,
        h,
        p1x,
        p1y,
        p2x,
        p2y,
      ],
    );