1、 3d围绕 z轴旋转 x,y 变换公式:
// α β
x = r cosα
y = r sinα
x' = r cos (α+β)
y' = r sin (α+β)
x' = r (cosα cosβ - sinαsinβ)
y' = r (sinαcosβ + cosαsinβ)
x' = xcosβ - ysinβ
y' = xsinβ + ycosβ z = z'
2023-08-24 19:28:46
1、 3d围绕 z轴旋转 x,y 变换公式:
// α β
x = r cosα
y = r sinα
x' = r cos (α+β)
y' = r sin (α+β)
x' = r (cosα cosβ - sinαsinβ)
y' = r (sinαcosβ + cosαsinβ)
x' = xcosβ - ysinβ
y' = xsinβ + ycosβ z = z'