-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
editorial: Move the rotation matrix creation algorithm to a separate …
…operation This will make it easier to invoke from the Automation section in an upcoming commit. The "convert a quaternion to rotation matrix" algorithm performs the same steps that were part of `OrientationSensor.populateMatrix()` and returns the matrix as a 9-element list that is used by the latter. There are no changes to the algorithm itself. Drive-by improvements to populateMatrix(): - Stop checking `targetMatrix`'s type, this is already done by Web IDL. - Refer to `this` with the right notation.
- Loading branch information
Showing
1 changed file
with
71 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters