Turns out that coordinates-of-chord-and-radius is a better API for drawing arc segments than either start/end angle or chord-and-coordinates-of-center-point. Makes the implementation of round joins and caps almost trivial…
-
-
Replying to @pcwalton
Doesn't this require inverse trig though? Or am I wrong (or is that not really a concern even if I'm not)
1 reply 0 retweets 0 likes
Replying to @thomcsc
It actually eliminates almost all the trig! See: https://github.com/pcwalton/pathfinder/blob/d5ba6ab6da5da02ee16240c17e0d9ce5506f70d8/geometry/src/stroke.rs#L343 … https://github.com/pcwalton/pathfinder/blob/d5ba6ab6da5da02ee16240c17e0d9ce5506f70d8/geometry/src/stroke.rs#L134 … https://github.com/pcwalton/pathfinder/blob/d5ba6ab6da5da02ee16240c17e0d9ce5506f70d8/geometry/src/outline.rs#L384 …
10:29 AM - 30 May 2019
0 replies
0 retweets
6 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.