Skip to content

Add a rotation example into the documentation #215

Open
@lemonJumps

Description

@lemonJumps

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions