I am working on a project and I have to check that several points on the canvas, XY coordinates, are defined paths . Actually I want to use something like You can only check the end, but the half-way-shaped path (unsuccessful) will fail. Things are a little bit better if you apply the Then you examine path intersections between .isPointInPath (x, y) , but check out what I am trying to do with several pixels
20, 30 - 26, 30 .
Segment-Enterresects-Path algorithm (or
line-intercept-path ) if you Remove the points that are not on the segment you want).
(20, 30) and
(26, 30) . If they are in two point paths and there are zero line / segment intersections along the path, then you are in the
(20, 30) to
(26, 30) in the path.
No comments:
Post a Comment