rotate-vector-about-axis
v1.0.2
Published
A helper module that allows you to rotate a vector about an arbitrary axis.
Downloads
12
Maintainers
Readme
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
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
.