Function FRect.intersectRect

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

std.typecons.Nullable!(dsdl2.frect.FRect) intersectRect (
  FRect other
) @trusted const;

Parameters

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

Returns

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