0
Resize java Polygon
I have a point array that represents a polygon. Now i want to resize that polygon, so scale it down with a given factor. Are there any build in methods or have you any idea how to implement it in a nice way. Important: I want to change the coordinates of the points, not draw the polygon with a transformation on a jpanel.
2 Respuestas
+ 1
Hi,
try the code in my code playground use the file Point.java, Polygon.java and PolygonTest.java.
Point.java to define a simple class to manipulate geometric points on a plane.
Polygon.java is a simple class to create and resize regular polygons inscribed in a circle.
I'll write the documentation of classes as soon as possible.
bye bye
0
Thank you! It's awesome