📜  角度向量 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:36.483000             🧑  作者: Mango

代码示例1
# to get a vector from an angle, implement something like the code below:

vector = Vector2(cos(theta), sin(theta))

# if this doesn't give accurate results, check whether you are using the right
# angle units for the function (degs or rads) and if it is flipped around the
# mirror line y=x swap the cos ans sin functions.