Computer Science Canada

decoding Point2D.Double

Author:  Master [ Wed Mar 03, 2004 12:42 am ]
Post subject:  decoding Point2D.Double

how do you decode(figure out) the numbers of the x and y coordinates of the point2d.double

Point2D.Double p = new Point2D.Double(2, 15);
how do you now use the variable "p" to figure out the coordinates?

Author:  wtd [ Wed Mar 03, 2004 12:58 am ]
Post subject: 

code:

double xCoordinate = p.getX();
double yCoordinate = p.getY();


: