PistonDevelopers / quaternion

A simple and type agnostic Rust library for quaternion math designed for reexporting
Apache License 2.0
13 stars 6 forks source link

Add `rot_vec3` #13

Closed bvssvni closed 9 years ago

bvssvni commented 9 years ago

Rotates a 3D vector by a quaternion.

The formula is:

rotate

where P is:

p

Can make the it faster by substituting the scalar value with 0 in the multiplication algorithm.

bvssvni commented 9 years ago

Done by https://github.com/PistonDevelopers/quaternion/pull/14