--- id: vector-rotate name: Vector.rotate category: vector kind: namespace-method tokens: Vector.rotate sig: Vector.rotate(v, angle) -> Vector tip: Rotate a vector by an angle in radians. order: 12 ns: Vector member: rotate --- Returns v rotated counter-clockwise by angle radians, using the deterministic fixed-point sine table. Positive angles turn toward +y. ```ludic program Demo { handler Step phase Update { let aimed = Vector.rotate(forward, spin) } } ```
v
angle