I have 2 values and want to create a rectangle from it.
So let's say:
1 = 1,1
2 = 10,8
So I want to calculate the upper left corner which would result in 1,8 and the lower right corner which would be 10,1. How can I achieve this with Java? Are there any libraries for this or is it even possible with the standard equipment?