I'd like to get the width and height of the red rectangle with this constraints:
- Maximize the area of the red rectangle
- The center of the rotation is the center of the original (dotted) rectangle.
- The red rectangle must have the same proportions as the original (dotted) rectangle
- The sides of the red rectangle are parralel to the dotted one.
- The red rectangle is contained in the blue one.
any help ?