Skip to content

Variable: Geometry ​

ts
const Geometry: object;

Type Declaration ​

NameTypeDescription
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 ) => booleanWrites 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 ) => RectWrites the smallest rect containing both inputs.

© 2026 PlayAdGentic