How to know if a point is inside a shape #960
-
|
Hi everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
There is no builtin way to do what you want. How could a possible API for this look like? |
Beta Was this translation helpful? Give feedback.
There is no builtin way to do what you want. How could a possible API for this look like?
We cannot return anything from calls, so it must either create a name coordinate or use a callback (like
for-each-anchor). Right now, you cannot query the number of intersections between paths – at least there is no simple API for that. You can always useget-ctx(ctx => { ... })to query the geometry of objects and use functions fromsrc/intersection.typto test shapes for intersection.