Hi all,
i'm studying Java2D shape classes. For every kind of class
i see a Float version and a Double one. The difference is,
i suppose, the precision of the Shape dimensions.
Let's take the Line2D class. It's an abstract class. Its 
abstract methods are:

getX1(), getY1(), etc

and they return double values.

The class Line2D.Float overrides that method with
float return type and Line2D.Double with double
return type.
But... why and abstract class and two other classes?
Why not only a double version?


Thank you
Max

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to