【Math】Vector Rotation

在这里插入图片描述

已知向量 O P 0 → \overrightarrow{OP_0} OP0 ( x 0 , y 0 ) (x_0,y_0) (x0,y0),求旋转 ϕ \phi ϕ 度后的坐标 ( x 1 , y 1 ) (x_1,y_1) (x1,y1)


由上图可知

x 1 = ∣ O P 1 → ∣ c o s ( θ + ϕ ) = ∣ O P 0 → ∣ c o s ( θ + ϕ ) = ∣ O P 0 → ∣ c o s θ ⋅ c o s ϕ − ∣ O P 0 → ∣ s i n θ ⋅ s i n ϕ = x 0 c o s ϕ − y 0 s i n ϕ \begin{aligned} x_1 &= |\overrightarrow{OP_1}| cos (\theta + \phi) \\ &= |\overrightarrow{OP_0}| cos (\theta + \phi) \\ &= |\overrightarrow{OP_0}| cos \theta \cdot cos\phi - |\overrightarrow{OP_0}| sin \theta \cdot sin\phi\\ &= x_0 cos\phi - y_0sin\phi \end{aligned} x1=OP1 cos(θ+ϕ)=OP0 cos(θ+ϕ)=OP0 cosθcosϕOP0 sinθsinϕ=x0cosϕy0sinϕ

上述推导利用了 ∣ O P 0 → ∣ = ∣ O P 1 → ∣ |\overrightarrow{OP_0}| = |\overrightarrow{OP_1}| OP0 =OP1 ,以及三角函数的和差公式化积公式

同理

y 1 = ∣ O P 1 → ∣ s i n ( θ + ϕ ) = ∣ O P 0 → ∣ s i n ( θ + ϕ ) = ∣ O P 0 → ∣ s i n θ ⋅ c o s ϕ + ∣ O P 0 → ∣ c o s θ ⋅ s i n ϕ = y 0 c o s ϕ + x 0 s i n ϕ \begin{aligned} y_1 &= |\overrightarrow{OP_1}| sin (\theta + \phi) \\ &= |\overrightarrow{OP_0}| sin (\theta + \phi) \\ &= |\overrightarrow{OP_0}| sin \theta \cdot cos\phi + |\overrightarrow{OP_0}| cos \theta \cdot sin\phi\\ &= y_0 cos\phi + x_0sin\phi \end{aligned} y1=OP1 sin(θ+ϕ)=OP0 sin(θ+ϕ)=OP0 sinθcosϕ+OP0 cosθsinϕ=y0cosϕ+x0sinϕ

综上所述, O P 1 → = ( x 0 c o s ϕ − y 0 s i n ϕ , x 0 s i n ϕ + y 0 c o s ϕ ) \overrightarrow{OP_1} = (x_0 cos\phi - y_0sin\phi, x_0sin\phi + y_0 cos\phi ) OP1 =(x0cosϕy0sinϕ,x0sinϕ+y0cosϕ)

写成矩阵乘法的形式

[ c o s ϕ − s i n ϕ s i n ϕ c o s ϕ ] ⋅ [ x 0 y 0 ] = [ x 1 y 1 ] \begin{bmatrix} cos \phi & -sin\phi \\ sin\phi & cos\phi \end{bmatrix} \cdot \begin{bmatrix} x_0 \\ y_0 \end{bmatrix} = \begin{bmatrix} x_1 \\ y_1 \end{bmatrix} [cosϕsinϕsinϕcosϕ][x0y0]=[x1y1]

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值