the "scale" and "transformation" values
the "scale" and "transformation" values
It's not entirely clear how the "scale" and "transformation" values are formed. For example, if I need to rotate a rectangle for 30° without distorting its angles and dimensions. By what formula should these quantities be calculated?
- Attachments
-
- SS.PNG (69.43 KiB) Viewed 2472 times
-
- Top Typographer
- Posts: 9890
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: the "scale" and "transformation" values
The values are trigonometric: try -0.5773 and 0.5773 (tan of 30°)
Re: the "scale" and "transformation" values
Thanks for the reply. However, I guessed that these are trigonometric functions. In this case, it's sin. But in order for the dimensions of the rectangle to be preserved, compensation for the "scale" values is necessary. I can't figure it out.
Can you tell us the principle of the formula by which transformations occur by changes in these quantities?
Can you tell us the principle of the formula by which transformations occur by changes in these quantities?
- Attachments
-
- SS.PNG (49.92 KiB) Viewed 2462 times
Re: the "scale" and "transformation" values
Is my question clear enough? Maybe it should be rephrased and clarified? Or do you just not fully understand this mechanism of transformation either?
-
- Top Typographer
- Posts: 9890
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: the "scale" and "transformation" values
The help file does not elaborate. You will have to figure it out for yourself. Maybe this illustration will help you. It looks like the transformations skew the glyph in the x and y directions.
Re: the "scale" and "transformation" values
Thank you, Bhikkhu Pesala, for Your work and illustration. I noticed this pattern. However, the essence of the question was to establish such a mathematical regularity in which a given figure retained not only its shape, but also its original dimensions. So in my drawing, the rectangle turned 30°.
So, for example, if there is a problem to rotate a triangle, the selection method will be very difficult. And if you need to rotate a triangle that is also scaled, it will be almost impossible to achieve this manually, by selection method.
Therefore, the question is to describe a mathematical function, a formula, so as not to waste time on stupid inaccurate selection manually.
And yes, experiments show that in this case this dependence is not a tangent, but a sinus.
However, its length and width have changed. By changing the values of the "Scale X" "Scale Y" counters, you can achieve this manually, by selection method. However, this is not serious. So, for example, if there is a problem to rotate a triangle, the selection method will be very difficult. And if you need to rotate a triangle that is also scaled, it will be almost impossible to achieve this manually, by selection method.
Therefore, the question is to describe a mathematical function, a formula, so as not to waste time on stupid inaccurate selection manually.
And yes, experiments show that in this case this dependence is not a tangent, but a sinus.
Re: the "scale" and "transformation" values
Hurrah! Remembered! This is the matrix of rotation of the vector on the plane. https://en.wikipedia.org/wiki/Rotation_matrix
Now the triangle can be easily rotated without distortion. For example, an equilateral triangle rotates 60°.
Now the triangle can be easily rotated without distortion. For example, an equilateral triangle rotates 60°.