sdl2/generated/lib_sdl_rect library

Functions

sdlEncloseFPoints(Pointer<SdlFPoint> points, int count, Pointer<SdlFRect> clip, Pointer<SdlFRect> result) bool
Calculate a minimal rectangle enclosing a set of points with float precision.
sdlEnclosePoints(Pointer<SdlPoint> points, int count, Pointer<SdlRect> clip, Pointer<SdlRect> result) bool
Calculate a minimal rectangle enclosing a set of points.
sdlHasIntersection(Pointer<SdlRect> a, Pointer<SdlRect> b) bool
Determine whether two rectangles intersect.
sdlHasIntersectionF(Pointer<SdlFRect> a, Pointer<SdlFRect> b) bool
Determine whether two rectangles intersect with float precision.
sdlIntersectFRect(Pointer<SdlFRect> a, Pointer<SdlFRect> b, Pointer<SdlFRect> result) bool
Calculate the intersection of two rectangles with float precision.
sdlIntersectFRectAndLine(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.
sdlIntersectRect(Pointer<SdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result) bool
Calculate the intersection of two rectangles.
sdlIntersectRectAndLine(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.
sdlUnionFRect(Pointer<SdlFRect> a, Pointer<SdlFRect> b, Pointer<SdlFRect> result) → void
Calculate the union of two rectangles with float precision.
sdlUnionRect(Pointer<SdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result) → void
Calculate the union of two rectangles.