Have ideas to improve npm?Join in the discussion! »

    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.

    Install

    npm i rotate-vector-about-axis

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar