method
Angle.diff
Angle.diff(a, b) -> fixed
Returns the shortest signed rotation from a to b, in [-pi, pi) — positive to turn one way, negative the other.
Example
program Demo {
handler Step phase Update {
let steer = Angle.diff(facing, target)
}
}