3d的 一些公式
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'
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'