You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking at how quaternions work for days, and I want to use them for a simple rotation, I know that you're supposed to do something like this:
q = quaternion.quaternion(0,0,0,0)
v = numpy.array([1,2,3])
print(q*v*q.conjugate())
and i know that x,y,z is a vector and w is the scaler and it's supposed to have a size of 1.
but uh, after looking at the docs, I have no idea what to actually do ;-;
I'm guessing most people simply want to take the despicable eurel angles, and use it to create quaternion to rotate an array of vectors :,D
I'd like to ask if you guys could add an example code of how to do this for smooth brained people like me.
thank you
The text was updated successfully, but these errors were encountered:
I would add on this.
There is more like common case when there can be multiple quaternions and multiple vectors. How to do rotation in that case?
Elementwise
Hiii!
I've been looking at how quaternions work for days, and I want to use them for a simple rotation, I know that you're supposed to do something like this:
and i know that x,y,z is a vector and w is the scaler and it's supposed to have a size of 1.
but uh, after looking at the docs, I have no idea what to actually do ;-;
I'm guessing most people simply want to take the despicable eurel angles, and use it to create quaternion to rotate an array of vectors :,D
I'd like to ask if you guys could add an example code of how to do this for smooth brained people like me.
thank you
The text was updated successfully, but these errors were encountered: