直线绕固定点旋转的公式
旋转矩阵参考文档绕(600,0)(600,0)(600,0)进行逆时针和顺时针旋转40度。import mathimport matplotlib.pyplot as pltimport numpy as npx = np.arange(600)y = -x + 600k = -1b = 600#绕(600, 0)进行旋转x0 = 600y0 = 0#逆时针旋转30度theta = math.pi/6#顺时针旋转30度theta2 = 2*math.pi - theta