@motion-script/core / containsClip
Function: containsClip()
containsClip(
clip,point,tolerance?):boolean
Defined in: render/clip-contains.ts:39
Whether point falls inside the region a Clip describes, within
tolerance scene units of its edge.
Shape ops union; a cut subtracts the immediately preceding shape from
everything declared before it, mirroring how the renderer replays the op list.
tolerance widens each shape outward — including a cutter, which therefore
takes a slightly larger bite, keeping the test forgiving in both directions
rather than making a hole's rim unpickable.
Parameters
clip
point
tolerance?
number = 0
Returns
boolean