Forgot password?
 Register account
View 275|Reply 1

\tdplotsetmaincoords换算成TikZ的xyz coordinate

[Copy link]

3152

Threads

7905

Posts

610K

Credits

Credits
64068
QQ

Show all posts

hbghlyj Posted 2023-7-25 00:35 |Read mode
Last edited by hbghlyj 2023-7-25 02:59tikz-3dplot\tdplotsetmaincoords{θ}{φ}与xyz坐标单位的换算公式?
有时只是改一下视角,若能计算xyz坐标单位,就不必加载整个tikz-3dplot
默认的z=-3.85mm的效果为
不符合orthographic projection.
z={(10:10mm)},x={(-45:5mm)}的效果为

例如

3152

Threads

7905

Posts

610K

Credits

Credits
64068
QQ

Show all posts

 Author| hbghlyj Posted 2023-7-25 01:54
Last edited by hbghlyj 2023-7-25 02:45先根据“$x',y',z'$单位向量投影模长平方和为$2$”缩放$x',y',z'$向量至模长为1.
$x',y',z'$单位向量投影就是文档式(2.1)的矩阵的前两行
$\pmatrix{\cos φ&\sin φ&0\\
-\cos θ\sin φ&\cos θ\cos φ&-\sin θ}$
\tdplotsetmaincoords的特点是$z'$单位向量的投影沿$x$分量为0.
例如
xyz coordinatestikz-3dplot
结果一致

Mobile version|Discuz Math Forum

2025-6-4 17:59 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit