简体   繁体   中英

Python 3D rotation of a point

I have a point (x,y,z) in 3d that I would like to rotate. First I would like to rotate the point around another point (0,0,0) 360 degrees. Then I would like to change the plane that the point rotates in by 1 degree and repeat. I have been looking at the rotation_matrix function in http://www.lfd.uci.edu/~gohlke/code/transformations.py.html , however it seems as if the rotation only goes around the x,y or z axis rather than an arbitrary angle. Does anyone know how to accomplish this?

Rotating around the x, y, and z pretty much is the only way to do it. Rotating a plane is exactly like rotating around an axis. Check out my scratch project for the math.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM