Function Rect.unify

Wraps SDL_UnionRect which creates a dsdl2.Rect of the minimum size to enclose two given dsdl2.Rects

Rect unify (
  Rect other
) @trusted const;

Parameters

NameDescription
other other dsdl2.Rect to unify with the dsdl2.Rect

Returns

dsdl2.Rect of the minimum size to enclose the dsdl2.Rect and other