围绕3D WPF中的点旋转Point3D [英] rotate a Point3D around a point in 3D WPF

查看:229
本文介绍了围绕3D WPF中的点旋转Point3D的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能告诉我如何在所需的Point3D处围绕轴旋转Point3D @ angle X吗?



例如,我有一个Point3D p1(10, 0,0);

我想在Z轴上旋转45度,并且必须以(10,0,0)为中心旋转。



感谢任何帮助。

谢谢

Can you show me how to rotate a Point3D @ angle X around an axis at a desired Point3D?

For example, I have a Point3D p1(10,0,0);
and I would like to rotate it 45 degrees in Z axis and has to be rotate centered at (10,0,0).

Any help is appreciated.
Thanks

推荐答案

您好,



查看RotateTransform类。

http://msdn.microsoft.com/en-us/library/system.windows.media.rotatetransform%28v=vs.110%29.aspx [ ^ ]





页面底部有一个例子。



Valery
Hello,

Look at the RotateTransform Class.
http://msdn.microsoft.com/en-us/library/system.windows.media.rotatetransform%28v=vs.110%29.aspx[^]


There's an example at the bottom of the page.

Valery


这篇关于围绕3D WPF中的点旋转Point3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆