Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15129

How to get the coordinates of the 4 corners of a coaxial rectangle on the circle

$
0
0
Assuming that the short side of the rectangle A=10CM, the long side B=20CM, the diameter of the circle is the diagonal of the rectangle (hypotenuse)
At 0 degrees, the coordinates of the four corners of the rectangle relative to the center of the circle are X1, Y1 (X2, Y2), (X3, Y3), (X4, Y4)
When rotating at any angle, what are the coordinates of the four corners relative to the center coordinate system?

Trigonometric functions and arcs are all forgotten, and I don’t know how to write this formula.
The main purpose is to obtain the required canvas size when a rectangular picture is rotated at any angle.

Name:  2230 旋转.jpg
Views: 22
Size:  34.4 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 15129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>