Rect.hasLineIntersection

Wraps SDL_IntersectRectAndLine which sees whether a line intersects with the dsdl2.Rect

struct Rect
const @trusted
bool
hasLineIntersection
()

Parameters

line Point[2]

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

Return Value

Type: bool

true if it intersects, otherwise false

Meta