![](/img/trans.png)
[英]How do I convert a coordinate in one 3d Cartesian coordinate system to another 3d Cartesian coordinate system
[英]Scale and translate path from one coordinate system to another
要找到合适的仿射变换(有很多方法可以将两个点变换为另一个点,但我们选择最简单的方法),您可以应用以下基本步骤:
Shift coordinates by (-startx, -starty)
Scale along X-axis with coefficient (newendx-newstartx)/(endx-startx) (here -80/3)
Scale along Y-axis with coefficient (newendy-newstarty)/(endy-starty) (here -35)
Shift coordinates by (newstartx, newstarty)
产生的仿射变换是这四个矩阵的乘积
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.