Rect.intersectRect

Wraps SDL_IntersectRect which attempts to get the rectangle of intersection between two dsdl2.Rects

struct Rect
const @trusted
Nullable!Rect
intersectRect

Parameters

other Rect

other dsdl2.Rect with which the dsdl2.Rect is intersected

Return Value

Type: Nullable!Rect

non-null Nullable!Rect instance if intersection is present, otherwise a null one

Meta