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)
}
}Angle.cos(a) -> fixed
Returns the cosine of the angle, using the deterministic fixed-point trig.
program Demo {
handler Step phase Update {
let dx = Angle.cos(facing)
}
}