Function fermium::rect::SDL_IntersectRectAndLine
source · pub unsafe extern "C" fn SDL_IntersectRectAndLine(
rect: *const SDL_Rect,
X1: *mut c_int,
Y1: *mut c_int,
X2: *mut c_int,
Y2: *mut c_int
) -> SDL_bool
Expand description
Calculate the intersection of a rectangle and line segment.
Return: SDL_TRUE
if there is an intersection, SDL_FALSE
otherwise.