I have a programming problem and I've forgotten some of my math rectangle formulas. I have to make a program that creates a rectangle that isn't parallel to the X and Y axis, I assume this means a diagonal rectangle in the first quadrant of a Cartesian graph.
My inputs are the following:
My inputs are the following:
- coordinates of the vertex closest to the X axis and the origin
- angle the long side makes with relation to the X axis.
- area of the rectangle
- length of the long side
- length of the short side,
- coordinates of all the rest of the rectangle's vertices.