Function SDL_HasRectIntersectionFloat

pub unsafe extern "C" fn SDL_HasRectIntersectionFloat(
    A: *const SDL_FRect,
    B: *const SDL_FRect,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Determine whether two rectangles intersect with float precision.

If either pointer is NULL the function will return false.

§Parameters

  • A: an SDL_FRect structure representing the first rectangle.
  • B: an SDL_FRect structure representing the second rectangle.

§Return value

Returns true if there is an intersection, false otherwise.

§Availability

This function is available since SDL 3.2.0.

§See also