intersectsWithQuad method

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

Return if this intersects with other. epsilon allows the caller to specify a custum eplsilon value that should be used for the test. If result is specified and an intersection is found, result is modified to contain more details about the type of intersection.


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

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