Public Group

# Rotate, then translate. Works or not?

This topic is 4707 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I would like to know if the following asssumption is true: to rotate about a certain point, you can first rotate it around the origin (which makes it a lot simpler to code) and then translate those coordinates to that center point. What I mean is, you have a set of base coordinates, for example (x, y, z) and you want to rotate those around a point (u, v, w) by (alpha=30, beta=30, gamma=30) (assume all angles in degrees) and what you do is take (x, y, z) and rotate them around the origin by (alpha, beta, gamma) e.g. z' = z cos alpha - y sin alpha y' = y cos alpha + z sin alpha x' = x cos beta - z' sin beta z' = z' cos beta + x sin beta then translate those coords by (u, v, w) x' = x' + u y' = y' + v z' = z' + w Thanks for any responses and Happy New Year!

##### Share on other sites
No. First you translate that point to the origin, do the rotation and then translate back.

1. 1
Rutin
67
2. 2
3. 3
4. 4
5. 5

• 21
• 10
• 33
• 20
• 9
• ### Forum Statistics

• Total Topics
633418
• Total Posts
3011784
• ### Who's Online (See full list)

There are no registered users currently online

×