ny為啥是 y - step * math.sin(angle)?不應該也是y-.....嗎?
import?math def?move(x,?y,?step,?angle): ????nx?=?x?+?step?*?math.cos(angle) ????ny?=?y?-?step?*?math.sin(angle) ????return?nx,?ny
import?math def?move(x,?y,?step,?angle): ????nx?=?x?+?step?*?math.cos(angle) ????ny?=?y?-?step?*?math.sin(angle) ????return?nx,?ny
2018-06-07
舉報
2018-06-07
哦,原來是順時針走的!