method
Angle.add
Angle.add(a, b) -> fixed
Adds two angles and wraps the result back into range.
Example
program Demo {
handler Step phase Update {
facing = Angle.add(facing, turnRate)
}
}Angle.add(a, b) -> fixed
Adds two angles and wraps the result back into range.
program Demo {
handler Step phase Update {
facing = Angle.add(facing, turnRate)
}
}