isCoveredBy method

bool isCoveredBy()

Returns true if this IntersectionMatrix is TFF or TFF or **FTF** or FTF

@return true if the first Geometry is covered by the second

Implementation

bool isCoveredBy() {
  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.INTERIOR][Location.EXTERIOR] == Dimension.FALSE &&
      matrix[Location.BOUNDARY][Location.EXTERIOR] == Dimension.FALSE;
}