SdlRectPointerEx extension

on

Methods

create() Rectangle<double>

Available on Pointer<SdlRect>, provided by the SdlRectPointerEx extension

getIntersection(Pointer<SdlRect> b, Pointer<SdlRect> result) bool

Available on Pointer<SdlRect>, provided by the SdlRectPointerEx extension

Calculate the intersection of two rectangles.
getLineIntersection(Pointer<Int32> x1, Pointer<Int32> y1, Pointer<Int32> x2, Pointer<Int32> y2) bool

Available on Pointer<SdlRect>, provided by the SdlRectPointerEx extension

Calculate the intersection of a rectangle and line segment.
hasIntersection(Pointer<SdlRect> b) bool

Available on Pointer<SdlRect>, provided by the SdlRectPointerEx extension

Determine whether two rectangles intersect.
union(Pointer<SdlRect> b, Pointer<SdlRect> result) bool

Available on Pointer<SdlRect>, provided by the SdlRectPointerEx extension

Calculate the union of two rectangles.