linearly v0.32.0 • Docs
linearly v0.32.0 / vec3 / rotateX
Function: rotateX()
rotateX(
v
,origin
,deg
):vec3
Rotate a 3D vector around the x-axis
Parameters
• v: vec3
The vec3 point to rotate
• origin: vec3
The origin of the rotation
• deg: number
The angle of rotation in degrees