#### Archived

This topic is now archived and is closed to further replies.

# Moving a Point in space

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

## Recommended Posts

How do I rotate a point around a centerpoint? I want to be able to move the center point and have the circumference point move with it but still be able to rotate around the centerpoint.

##### Share on other sites
If your point is at ( X, Y, Z ):

Rotate your satelite around the origin, for example if it had a unit radius orbit, it starts at ( in the xy plane ) ( 1, 0, 0 ) then moves in time to ( 0, 1, 0 ) and so on.
Add your point's location to the satelite's x, y, z's. so initially satelite is at ( X + 1, Y, 0 ) then in time moves to ( X, Y + 1, 0 ).

Then as your point moves, just add the new X, Y, Z to the satelites origin based location.

Edited by - Antknei on August 31, 2000 3:10:11 PM

##### Share on other sites
If your point coordinates are not at the origin (0, 0) and are world based (meaning they have been already translated) then you would have to move them back to the origin, meaning, subtracting the center point that you have to rotate about, from your point that you want to rotate, then rotate it, and finally translate it back (adding the center point to the point you just rotated). I don''t know if I interpreted your question correctly, but if I did, that''s the way to go, if not then please be more specific.

-------------------------------
That's just my 200 bucks' worth!

1. 1
2. 2
Rutin
16
3. 3
4. 4
5. 5

• 26
• 11
• 9
• 9
• 11
• ### Forum Statistics

• Total Topics
633703
• Total Posts
3013455
×