FRect.hasLineIntersection

Wraps SDL_IntersectFRectAndLine (from SDL 2.0.22) which sees whether a line intersects with the dsdl2.FRect

struct FRect
const @trusted
static if(sdlSupport >= SDLSupport.v2_0_22)
bool
hasLineIntersection

Parameters

line FPoint[2]

set of two dsdl2.FPoints denoting the start and end coordinates of the line to check its intersection of with the dsdl2.FRect

Return Value

Type: bool

true if it intersects, otherwise false

Meta