linearly v0.32.0Docs


linearly v0.32.0 / vec3 / rotateZ

Function: rotateZ()

rotateZ(v, origin, deg): vec3

Rotate a 3D vector around the z-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:776open in new window