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

Quaternion division #32

Closed
rosana0331 opened this issue Nov 2, 2016 · 3 comments
Closed

Quaternion division #32

rosana0331 opened this issue Nov 2, 2016 · 3 comments

Comments

@rosana0331
Copy link

Does anyone know how to use the division function? I am trying to use it as:
q1 = something
q2 = something else
div = quaternion.division(q2,q1)

Is that correct? I can't find any examples for this particular library. Thank you!

@moble
Copy link
Owner

moble commented Nov 2, 2016

Just use / as you would for numbers:

import numpy as np
import quaternion
q1 = quaternion.x
q2 = quaternion.y
q1/q2

@moble moble closed this as completed Nov 2, 2016
@rosana0331
Copy link
Author

Perfect. Thank you!

@rosana0331
Copy link
Author

Thank you!

Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Mike Boyle notifications@github.com Date: 11/2/16 11:32 AM (GMT-05:00) To: moble/quaternion quaternion@noreply.github.com Cc: rosana0331 rb0331@twc.com, Author author@noreply.github.com Subject: Re: [moble/quaternion] Quaternion division (#32)
Just use / as you would for numbers:

import numpy as np
import quaternion
q1 = quaternion.x
q2 = quaternion.y
q1/q2


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/moble/quaternion","title":"moble/quaternion","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/moble/quaternion"}},"updates":{"snippets":[{"icon":"PERSON","message":"@moble in #32: Just use / as you would for numbers:\r\npython\r\nimport numpy as np\r\nimport quaternion\r\nq1 = quaternion.x\r\nq2 = quaternion.y\r\nq1/q2\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/moble/quaternion/issues/32#issuecomment-257901232"}}}

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