isCovers method

bool isCovers()

Returns true if this IntersectionMatrix is T***FF* or TFF or TFF or **TFF

@return true if the first Geometry covers the second

Implementation

bool isCovers() {
  bool hasPointInCommon =
      isTrue(matrix[Location.INTERIOR][Location.INTERIOR]) ||
          isTrue(matrix[Location.INTERIOR][Location.BOUNDARY]) ||
          isTrue(matrix[Location.BOUNDARY][Location.INTERIOR]) ||
          isTrue(matrix[Location.BOUNDARY][Location.BOUNDARY]);

  return hasPointInCommon &&
      matrix[Location.EXTERIOR][Location.INTERIOR] == Dimension.FALSE &&
      matrix[Location.EXTERIOR][Location.BOUNDARY] == Dimension.FALSE;
}