hasIntersection method

bool hasIntersection(
  1. Pointer<SdlFRect> b
)

Determine whether two rectangles intersect with float precision.

If either pointer is NULL the function will return false.

\param A an SDL_FRect structure representing the first rectangle. \param B an SDL_FRect structure representing the second rectangle. \returns true if there is an intersection, false otherwise.

\since This function is available since SDL 3.2.0.

\sa SDL_GetRectIntersection

extern SDL_DECLSPEC bool SDLCALL SDL_HasRectIntersectionFloat(const SDL_FRect *A, const SDL_FRect *B)

{@category rect}

Implementation

bool hasIntersection(Pointer<SdlFRect> b) =>
    sdlHasRectIntersectionFloat(this, b);