tworectangle
Tworectangle is a geometric term referring to the union of two closed rectangles in the plane whose interiors are disjoint and whose boundaries meet along a nonempty line segment. In this usual definition, the two rectangles touch each other along a shared side of positive length, but do not overlap in area.
If the two rectangles share a full side and lie on opposite sides of that side, their
- Area: the area of a tworectangle is the sum of the areas of its two constituent rectangles.
- Perimeter: if L denotes the length of the shared boundary segment, the outer perimeter is P =
- Centroid: the centroid of the tworectangle is the area-weighted average of the rectangles’ centroids: C = (A1*C1
- Representation: a tworectangle can be described by the coordinates of its two rectangles, or by their
- Rectilinear orientation: most discussions assume axis-aligned rectangles, common in tiling and computer graphics.
- Applications include tiling problems, layout design, and computational geometry procedures for union and boundary computation. See