KieranWynn / pyquaternion

A fully featured, pythonic library for representing and using quaternions
http://kieranwynn.github.io/pyquaternion/
MIT License
344 stars 72 forks source link

Easy access to quaternion elements #22

Closed varunagrawal closed 5 years ago

varunagrawal commented 6 years ago

Hey. Thanks for the fantastic work on this library.

I was wondering if it would be good to add properties to access the quaternion elements directly, i.e. instead of doing q.real and q.vector[0], q.vector[1] & q.vector[0], a user could simply do q.w, q.x, q.y & q.z? This would be 100% backwards compatible since we are only adding new instance properties, but these should make testing and debugging much easier and more readable.

I'd be happy to submit a PR for this.

rpapallas commented 5 years ago

This looks like is now resolved in https://github.com/KieranWynn/pyquaternion/pull/23