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
otherIBoundsThe 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
otherQuadrilateralThe 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
aQuadrilateralThe first quadrilateral.
bQuadrilateralThe second quadrilateral.
Returns
- Quadrilateral
A new axis-aligned Quadrilateral representing the union.