Module fermium::rect[][src]

Operations for SDL’s rectangle type.

Structs

SDL_FPoint

The structure that defines a point (floating)

SDL_FRect

A rectangle, with the origin at the upper left (floating).

SDL_Point

The structure that defines a point (integer)

SDL_Rect

A rectangle, with the origin at the upper left (integer).

Functions

SDL_EnclosePoints

Calculate a minimal rectangle enclosing a set of points.

SDL_HasIntersection

Determine whether two rectangles intersect.

SDL_IntersectRect

Calculate the intersection of two rectangles.

SDL_IntersectRectAndLine

Calculate the intersection of a rectangle and line segment.

SDL_PointInRect

Returns true if a point resides inside a rectangle.

SDL_RectEmpty

Returns true if the rectangle has no area.

SDL_UnionRect

Calculate the union of two rectangles.