I am working with two (or perhaps three) coordinates.
These coordinates represent the upper left and upper right corners of a shape.
My goal is to create a div element where the top-left corner corresponds to the left coordinate, and the top-right corner corresponds to the right coordinate.
Additionally, I would like to incorporate rotation in the design based on these coordinates or the height difference between them.
What is the best approach to achieve this outcome?