Struct PolygonRelationship

Existential topological facts describing the relationship of two polygons.

struct PolygonRelationship;

The facts intentionally form a smaller contract than DE-9IM. They preserve only the information needed by qualified consumers; they do not expose contact counts, ordering, coordinates, component identity, ring identity, or constructed intersection geometry.

hasFirstOnlyInterior is true exactly when some two-dimensional region is inside first and outside second.

hasSecondOnlyInterior is the symmetric fact for second.

hasSharedInterior is true exactly when some two-dimensional region lies inside both polygons.

hasBoundaryContact is true exactly when the two polygon boundaries share at least one point.

hasBoundaryOverlap is true exactly when the boundaries share a positive-length subset. Therefore boundary overlap implies boundary contact.