Constructs a dsdl2.FRect from a vanilla SDL_FRect from bindbc-sdl
Constructs a dsdl2.FRect by feeding in the x, y, width, and height of the rectangle
Constructs a dsdl2.FRect by feeding in a dsdl2.FPoint as the xy, then width and height of the rectangle
Constructs a dsdl2.FRect from a dsdl2.Rect
Wraps SDL_FRectEmpty (from SDL 2.0.22) which checks if the dsdl2.FRect is an empty rectangle
Wraps SDL_HasIntersectionF (from SDL 2.0.22) which sees whether two dsdl2.FRects intersect each other
Wraps SDL_IntersectFRectAndLine (from SDL 2.0.22) which sees whether a line intersects with the dsdl2.FRect
Proxy to the height of the dsdl2.FRect
Wraps SDL_IntersectFRectAndLine (from SDL 2.0.22) which attempts to clip a line segment in the boundaries of the dsdl2.FRect
Wraps SDL_IntersectFRect (from SDL 2.0.22) which attempts to get the rectangle of intersection between two dsdl2.FRects
Binary operation overload template to move rectangle's position by an offset as a dsdl2.FPoint
Operator assignment overload template to move rectangle's position in-place by an offset as a dsdl2.FPoint
Proxy to the dsdl2.FPoint containing the x and y value of the dsdl2.FRect
Wraps SDL_PointInFRect (from SDL 2.0.22) which sees whether the coordinate of a dsdl2.FPoint is inside the dsdl2.FRect
Proxy to the size array containing the width and height of the dsdl2.FRect
Formats the dsdl2.FRect into its construction representation: "dsdl2.FRect(<x>, <y>, <w>, <h>)"
Wraps SDL_UnionFRect which creates a dsdl2.FRect (from SDL 2.0.22) of the minimum size to enclose two given dsdl2.FRects
Proxy to the width of the dsdl2.FRect
Proxy to the X value of the dsdl2.FRect
Proxy to the Y value of the dsdl2.FRect
Internal SDL_FRect struct
D struct that wraps SDL_FRect (from SDL 2.0.10) representing a rectangle of floating point 2D coordinate and dimension
dsdl2.FRect stores floating point x and y coordinate points, as well as width and height which specifies the rectangle's dimension. x and y symbolize the top-left coordinate of the rectangle, and the width and height extend to the positive plane of both axes.