FRect.intersectRect

Wraps SDL_IntersectFRect (from SDL 2.0.22) which attempts to get the rectangle of intersection between two dsdl2.FRects

struct FRect
const @trusted
static if(sdlSupport >= SDLSupport.v2_0_22)
Nullable!FRect
intersectRect

Parameters

other FRect

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

Return Value

Type: Nullable!FRect

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

Meta