Function Rect.unify

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

Rect unify (
  Rect other
) @trusted const;

Parameters

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

Returns

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