Variable: Geometry
ts
const Geometry: object;Type Declaration
| Name | Type | Description |
|---|---|---|
CircleIntersectsRect() | (c, r) => boolean | - |
CirclesIntersect() | (a, b) => boolean | - |
ClosestPointInRect() | ( px, py, r, out ) => object | ---------- Cross-shape ---------- Closest point on Rect to (px, py) — clamping each axis into the rect. Used by CircleIntersectsRect and by general "snap to bounds" UI logic. |
PointInCircle() | ( px, py, c ) => boolean | - |
PointInRect() | ( px, py, r ) => boolean | - |
RectIntersection() | ( a, b, out ) => boolean | Writes the intersection of two rects into out. Returns true when the rects actually overlap; when they don't, leaves out zeroed and returns false. |
RectsIntersect() | (a, b) => boolean | - |
RectUnion() | ( a, b, out ) => Rect | Writes the smallest rect containing both inputs. |