intersectsWithQuad method

bool intersectsWithQuad(
  1. Quad other, {
  2. IntersectionResult? result,
})

Return if this intersects with other

Implementation

bool intersectsWithQuad(Quad other, {IntersectionResult? result}) {
  other.copyTriangles(_quadTriangle0, _quadTriangle1);

  return intersectsWithTriangle(_quadTriangle0, result: result) ||
      intersectsWithTriangle(_quadTriangle1, result: result);
}