二维旋转矩阵 二维旋转是绕着某一个点进行旋转。如上图所示,蓝色线绕着O点旋转θ\thetaθ角度到绿色线。 假设蓝色线为lll,绿色线为l′l'l′。x=rcosϕx′=rcos(ϕ+θ)=rcosϕcosθ−rsinϕsinθ=xcosθ−ysinθx=rcos\phi \quad x'=rcos(\phi+\theta)=rcos\phi cos\theta-rsin\phi sin\theta=xcos\theta-ysin\thetax=rcosϕx′=rcos(ϕ+θ)=rcosϕcosθ−rsinϕsinθ=xcosθ−ysinθy=sinϕy′=rsin(ϕ+θ)=rsinϕcosθ+rcosϕsinθ=xsinθ+ycosθy=sin\phi \quad y'=rsin(\phi+\theta)=rsin\phi cos\theta+rcos\phi sin\theta=xsin\theta+ycos\thetay=sinϕy′=rsin(ϕ+θ)=rsinϕcosθ+rcosϕsinθ=xsinθ+ycosθ 写成矩阵的形式是:[x′y′]=[cosθ−sinθsinθcosθ]∗[xy]\left[\begin{array}{l} x^{\prime} \\ y^{\prime} \end{array}\right]=\left[\begin{array}{ll} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{array}\right] *\left[\begin{array}{l} x \\ y \end{array}\right][x′y′]=[cosθsinθ−sinθcosθ]∗[xy] 相关文章: