1.0.2 • Published 8 years ago

rotate-vector-about-axis v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

rotate-vector-about-axis

A helper module that allows you to rotate a gl-vec3 about an arbitrary axis(and not only the x-, y- and z-axes).

Usage

NPM

rotateVectorAboutAxis(v, axis, angle)

This function returns the vector v rotated angle radians about the axis axis, where v and axis are both of the type gl-vec3.