intersectsWithQuad method

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

Return true if this intersects with other.

If result is specified and an intersection is found, result is modified to contain more details about the type of intersection.

Implementation

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

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