sdl3/generated/lib_sdl_rect library

Functions

sdlGetRectAndLineIntersection(Pointer<SdlRect> rect, Pointer<Int32> x1, Pointer<Int32> y1, Pointer<Int32> x2, Pointer<Int32> y2) bool
Calculate the intersection of a rectangle and line segment.
sdlGetRectAndLineIntersectionFloat(Pointer<SdlFRect> rect, Pointer<Float> x1, Pointer<Float> y1, Pointer<Float> x2, Pointer<Float> y2) bool
Calculate the intersection of a rectangle and line segment with float precision.
sdlGetRectEnclosingPoints(Pointer<SdlPoint> points, int count, Pointer<SdlRect> clip, Pointer<SdlRect> result) bool
Calculate a minimal rectangle enclosing a set of points.
sdlGetRectEnclosingPointsFloat(Pointer<SdlFPoint> points, int count, Pointer<SdlFRect> clip, Pointer<SdlFRect> result) bool
Calculate a minimal rectangle enclosing a set of points with float precision.
sdlGetRectIntersection(Pointer<SdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result) bool
Calculate the intersection of two rectangles.
sdlGetRectIntersectionFloat(Pointer<SdlFRect> a, Pointer<SdlFRect> b, Pointer<SdlFRect> result) bool
Calculate the intersection of two rectangles with float precision.
sdlGetRectUnion(Pointer<SdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result) bool
Calculate the union of two rectangles.
sdlGetRectUnionFloat(Pointer<SdlFRect> a, Pointer<SdlFRect> b, Pointer<SdlFRect> result) bool
Calculate the union of two rectangles with float precision.
sdlHasRectIntersection(Pointer<SdlRect> a, Pointer<SdlRect> b) bool
Determine whether two rectangles intersect.
sdlHasRectIntersectionFloat(Pointer<SdlFRect> a, Pointer<SdlFRect> b) bool
Determine whether two rectangles intersect with float precision.