linearly v0.32.0Docs


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

Returns

vec3

Defined in

src/vec3.ts:732open in new window