rotate-vector-about-axis

1.0.2 • Public • Published

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.

/rotate-vector-about-axis/

    Package Sidebar

    Install

    npm i rotate-vector-about-axis

    Weekly Downloads

    6

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • erkaman