The problem has been solved, Thanks!
Printable View
The problem has been solved, Thanks!
If left and right are to be believed, then (upper_left.x - lower_right.x) would be negative.
Ok, I see that now. I will fix that but since I did it for both x and y so they will both be negative which will give me a positive. I still get the strange decimals.
OK, now it is working perfectly. Thank you for your help, I don't know why I was getting the strange decimals before. I changed the %lf to %f. Thanks for pointing that out
-_-
Do not erase your post just because your problem has been solved - how the hell does that help other people that might run into the same problem?
Jesus. It is as if some people do not think before acting.