Function Rect.intersectLine
Wraps SDL_IntersectRectAndLine
which attempts to clip a line segment in the boundaries of the dsdl
Parameters
Name | Description |
---|---|
line | set of two dsdl s denoting the start and end coordinates of the line to clip from
its intersection with the dsdl |
Returns
non-null Nullable!(Point[2])
as the clipped line if there is an intersection, otherwise a null one