Method Union
Union(IBounds)
Returns the smallest axis-aligned quadrilateral that contains this quadrilateral and other
.
This is the union of their axis-aligned bounding boxes (AABB).
public Quadrilateral Union(IBounds other)
Parameters
other
IBoundsThe other bounds to combine with.
Returns
- Quadrilateral
A new axis-aligned Quadrilateral representing the AABB union of the two shapes.
Union(Quadrilateral)
Returns the AABB union of this quadrilateral and another quadrilateral, as a new axis-aligned quadrilateral.
public Quadrilateral Union(Quadrilateral other)
Parameters
other
QuadrilateralThe other Quadrilateral to union with.
Returns
- Quadrilateral
A new axis-aligned Quadrilateral.
Union(Quadrilateral, Quadrilateral)
Returns the AABB union of two quadrilaterals as an axis-aligned quadrilateral.
public static Quadrilateral Union(Quadrilateral a, Quadrilateral b)
Parameters
a
QuadrilateralThe first quadrilateral.
b
QuadrilateralThe second quadrilateral.
Returns
- Quadrilateral
A new axis-aligned Quadrilateral representing the union.