API Reference › Vector › Vector.rotate
method

Vector.rotate

Vector.rotate(v, angle) -> Vector

Returns v rotated counter-clockwise by angle radians, using the deterministic fixed-point sine table. Positive angles turn toward +y.

Example

program Demo {
  handler Step phase Update {
    let aimed = Vector.rotate(forward, spin)
  }
}
← All symbols