Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

round is not implemented #45

Closed
divyank0 opened this issue Apr 26, 2017 · 1 comment
Closed

round is not implemented #45

divyank0 opened this issue Apr 26, 2017 · 1 comment

Comments

@divyank0
Copy link

I was trying to use quaternion and rounding off to nearest decimals.
However it says, Not implemented (virtual attribute).

@moble
Copy link
Owner

moble commented Apr 26, 2017

I don't understand why you would ever want to round a quaternion, so I won't implement it, but you could get that behavior with

quaternion.as_quat_array(quaternion.as_float_array(q).round())

@moble moble closed this as completed Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants