I
I
iBird Rose2018-02-10 10:37:19
Mathematics
iBird Rose, 2018-02-10 10:37:19

How to calculate the rotation coordinates of two objects in order to maintain their position relative to each other?

5a7ea398d00b7397660802.png
There are 2 blocks (red and black)
If we rotate both by 90 degrees, the position relative to each other will change.
but it is necessary to save the
ps position and the angle of rotation may differ.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2018-02-10
@iiiBird

Pivot point in English is the point around which the turn is made. See wiki:Rotate .
In order for the relative position of the two figures to be preserved during rotation, it is necessary that the "pivots" of both figures coincide.
It is not yet clear from the question what is given and what needs to be found. But suppose we are given two shapes, red (K) and black (H), and we need to rotate both around the center of the red one.
With red, everything is clear. On black, you will need to find the position of the center K before turning. And rotate H about this point.

X
xmoonlight, 2018-02-10
@xmoonlight

Rotate the black block's coordinate system.
That is, you must take into account the properties of objects in the desired coordinate system - hierarchically: the way they inherit properties (rotations, stretches, etc.).
When one object is its coordinate system.
When a group - the relative coordinate system for all related child objects is calculated and then it is rotated, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question