Rotate Normal vector on its own axis

I need to rotate a directional vector on its own Y axis.

Ideally a function that looks like this:

function rotateVectorOnUpVector(v: Vector3, angle: number) : Vector3```
1 Like