Conversation
|
cross reference: #191 |
|
I’ll take a look tomorrow. Bug me about it please? ;-)
NOTE: The information in this message and any attachments is confidential |
lib/frame.js
Outdated
There was a problem hiding this comment.
A reasonably clear derivation can be found here: http://en.wikipedia.org/wiki/Axis–angle_representation#Exponential_map_from_so.283.29_to_SO.283.29
Also see the log map section.
PROBLEM: The output of rotationAxis is normalized var sin = Leap.vec3.len(this.rotationAxis(sinceFrame)); This has been addressed by re-deriving the axis of rotation without normalization. NOTE: The equations used here (which match those used in platform) will result in an undefined rotation at 180 deg. The formula used here conforms to the Leap math standards.
Making hand rotationAngle consistent with frame rotationAngle
Correcting variable name rotation -> rot.
WIP - this still needs to be confirmed, and the tests updated to match. CC @GabrielHare