| Author |
2D Polygon shapes
|
Luc Perreau
Greenhorn
Joined: Nov 08, 2002
Posts: 1
|
|
i have a task that i'm having problems to do. i need a user to enter coordinates of a polygon, then i need to list the cartesian coordinates of the original polygon, then after translation, then after scaling, then after rotation, after a combination of those operations, i am trying to use the Polygon class in java.awt and the AffineTransform class, but i am having many problems, can anyone help plese??? Luc
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
Welcome to JavaRanch, Luc! If you're not already familiar with them, you may want to take a look at The 2D Graphics Trail of Sun's Java Tutorial and The J2SE API Documentation. Otherwise, you mentioned that you are having some problems. So, what are they exactly? Feel free to post relavent example code (just be sure to surround the code with the [code] and [/code] UBB Tags). Good luck and I hope to see you 'round the Ranch!
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
 |
|
|
subject: 2D Polygon shapes
|
|
|