SDL_GetRectIntersectionFloat

Calculate the intersection of two rectangles with float precision.

If result is NULL then this function will return false.

extern (C) nothrow @nogc extern
bool
SDL_GetRectIntersectionFloat
(
const(SDL_FRect)* A
,
const(SDL_FRect)* B
,)

Parameters

A const(SDL_FRect)*

an SDL_FRect structure representing the first rectangle.

B const(SDL_FRect)*

an SDL_FRect structure representing the second rectangle.

result SDL_FRect*

an SDL_FRect structure filled in with the intersection of rectangles A and B.

Return Value

Type: bool

true if there is an intersection, false otherwise.

\sa SDL_HasRectIntersectionFloat

Meta