2

Is there a library or quick function to calculate roll/pitch/yaw from a Quaternion? The Node.js Myo library only gives a raw quaternion and does not give roll/pitch/yaw, which Myo's other libraries seem to provide. The only javascript library that seemed to have such a function is Three.js, but unfortunately there doesn't seem to be a working implementation of Three.js for node...

Community
  • 1
  • 1
woojoo666
  • 7,801
  • 7
  • 45
  • 57

1 Answers1

0

Why not using Quaternion.js? With it it's quite simple to achieve:

var q = new Quaternion(...);

console.log(q.toEuler())