Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Shape quadratic bezier hitTest #2448

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivanpopelyshev
Copy link

@ivanpopelyshev ivanpopelyshev commented Jan 16, 2019

Just in case if someone copies shape hitTest from the project - it leads to artifacts on my swf-s. Here is fixed version.

image

Left-to-right:

  1. Shape
  2. Shumway hitmap
  3. Corner cases (t=0, t=1, t1=t2) fix
  4. if (a!==0) fix, helps with curves that have cpY as an average of fromY and toY

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant