sdlHasIntersectionF function
Determine whether two rectangles intersect with float precision.
If either pointer is NULL the function will return SDL_FALSE.
\param A an SDL_FRect structure representing the first rectangle \param B an SDL_FRect structure representing the second rectangle \returns SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
\since This function is available since SDL 2.0.22.
\sa SDL_IntersectRect
extern DECLSPEC SDL_bool SDLCALL SDL_HasIntersectionF(const SDL_FRect * A, const SDL_FRect * B)
Implementation
bool sdlHasIntersectionF(Pointer<SdlFRect> a, Pointer<SdlFRect> b) {
final sdlHasIntersectionFLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlFRect> a, Pointer<SdlFRect> b),
int Function(
Pointer<SdlFRect> a, Pointer<SdlFRect> b)>('SDL_HasIntersectionF');
return sdlHasIntersectionFLookupFunction(a, b) == 1;
}