我在画布上有一条线,我想旋转x度,同时保持起点在canvs的中间,我想知道计算终点坐标的公式是什么?,有点像
degrees=xnumberofdegrees
lineEndPoint=degrees*someformulaforxandy
canvas = Canvas(root, width=500, height=500, bg="white")
canvas.pack()
rotatedline=space.create_line(250,250,lineEndPoint)
起点应该总是250250,因为画布的大小是500x500,所以我只需要结束点。欢迎任何帮助。在
三角法的应用相当简单。在
相关问题 更多 >
编程相关推荐