material-motion-js
material-motion-js copied to clipboard
Implement rotate stream
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.
💻 I'm working on a diff at http://codereview.cc/D1692