Function sdl2_sys::SDL_IntersectRectAndLine [] [src]

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

\brief Calculate the intersection of a rectangle and line segment.

\return SDL_TRUE if there is an intersection, SDL_FALSE otherwise.