material-motion-js icon indicating copy to clipboard operation
material-motion-js copied to clipboard

Implement rotate stream

Open appsforartists opened this issue 9 years ago • 2 comments

Take the pointersStream (#64) and return a stream of changes in the angle between two pointers.

Calculating the angle between two points should be basic trig. Then, you're just diffing adjacent events to find the delta. If that algorithm doesn't work, @maxw wrote some gesture recognizers for Form. Take a peek at the source.

Open questions:

  • What if there are more than two pointers?
    • Same problem in #66; for now, you can probably ignore this scenario.

appsforartists avatar Sep 15 '16 22:09 appsforartists

Pen

appsforartists avatar Sep 30 '16 01:09 appsforartists

💻 I'm working on a diff at http://codereview.cc/D1692

appsforartists avatar Oct 04 '16 20:10 appsforartists