I can not create an algorithm for finding the coordinates of the vertices of a rectangle with such known variables as the length of the edges , the coordinates of one vertex in the Cartesian coordinate system, the angle of rotation of the local coordinate system of the rectangle.
For example:
- a and b are the lengths of the edges of the rectangle;
- A0 (x, y) is the coordinate of the vertex of the rectangle, and it is represented by the center of the local coordinate system of the rectangle;
- angle - the angle of rotation of the local coordinate system of the rectangle.
I can’t find the coordinates A1, A2, A3 .


