Function Rect.hasLineIntersection
Wraps SDL_IntersectRectAndLine
which sees whether a line intersects with the dsdl2
Parameters
Name | Description |
---|---|
line | set of two dsdl2 s denoting the start and end coordinates of the line to check its intersection
of with the dsdl2 |
Returns
true
if it intersects, otherwise false