Pixels are pixels, 1=1 and 1.0001=1. So providing floating points that close together will boil down to a single point in a real application.You need to transform and scale the coordinates...
Type: Posts; User: copeg
Pixels are pixels, 1=1 and 1.0001=1. So providing floating points that close together will boil down to a single point in a real application.You need to transform and scale the coordinates...
I recommend posting an SSCCE demonstrating the problem. Division by zero seems more like a logic problem that can't be resolved without a code example.
One post is enough....your other post has been deleted. For future reference, please do not post your question twice to the forums.
Do not call getGraphics to draw to a Component. Override the...
Without an SSCCE one can only guess that you are trying to draw floating point values to a panel which can only draw integers.