linearly v0.32.0Docs


linearly v0.32.0 / vec3 / rotateY

Function: rotateY()

rotateY(v, origin, deg): vec3

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