logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_HasRectIntersectionFloat - Determine whether two rectangles intersect with float precision.

Availability

       This function is available since SDL 3.2.0.

Description

       If either pointer is NULL the function will return false.

Function Parameters

A      an SDL_FRect
               structure representing the first rectangle.

       B      an SDL_FRect
               structure representing the second rectangle.

Header File

       Defined in SDL3/SDL_rect.h

Name

       SDL_HasRectIntersectionFloat - Determine whether two rectangles intersect with float precision.

Return Value

       Returns true if there is an intersection, false otherwise.

See Also

(3), SDL_GetRectIntersection(3)

Simple Directmedia Layer                           SDL 3.2.10                    SDL_HasRectIntersectionFloat(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_HasRectIntersectionFloat(constSDL_FRect*A,constSDL_FRect*B);

See Also