API Reference › Angle › Angle.cos
method

Angle.cos

Angle.cos(a) -> fixed

Returns the cosine of the angle, using the deterministic fixed-point trig.

Example

program Demo {
  handler Step phase Update {
    let dx = Angle.cos(facing)
  }
}
← All symbols