Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 decoding Point2D.Double
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Master




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Wed Mar 03, 2004 12:58 am   Post subject: (No subject)

code:

double xCoordinate = p.getX();
double yCoordinate = p.getY();
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: