rect topic
CategoryRect
Some helper functions for managing rectangles and 2D points, in both integer and floating point versions.
Functions
-
sdlGetRectAndLineIntersection(
Pointer< rectSdlRect> 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< rectSdlFRect> 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< rectSdlPoint> points, int count, Pointer<SdlRect> clip, Pointer<SdlRect> result) → bool - Calculate a minimal rectangle enclosing a set of points.
-
sdlGetRectEnclosingPointsFloat(
Pointer< rectSdlFPoint> points, int count, Pointer<SdlFRect> clip, Pointer<SdlFRect> result) → bool - Calculate a minimal rectangle enclosing a set of points with float precision.
-
sdlGetRectIntersection(
Pointer< rectSdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result) → bool - Calculate the intersection of two rectangles.
-
sdlGetRectIntersectionFloat(
Pointer< rectSdlFRect> a, Pointer<SdlFRect> b, Pointer<SdlFRect> result) → bool - Calculate the intersection of two rectangles with float precision.
-
sdlGetRectUnion(
Pointer< rectSdlRect> a, Pointer<SdlRect> b, Pointer<SdlRect> result) → bool - Calculate the union of two rectangles.
-
sdlGetRectUnionFloat(
Pointer< rectSdlFRect> a, Pointer<SdlFRect> b, Pointer<SdlFRect> result) → bool - Calculate the union of two rectangles with float precision.
-
sdlHasRectIntersection(
Pointer< rectSdlRect> a, Pointer<SdlRect> b) → bool - Determine whether two rectangles intersect.
-
sdlHasRectIntersectionFloat(
Pointer< rectSdlFRect> a, Pointer<SdlFRect> b) → bool - Determine whether two rectangles intersect with float precision.