public class RotatePolygon extends Object
| Constructor and Description |
|---|
RotatePolygon() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(int x,
int y) |
void |
addPoint(Point p) |
void |
drawLines(Graphics g,
int x,
int y) |
void |
rotate(int x1,
int y1,
int x2,
int y2)
Rotate the polygon according to the angle of a specified line.
|
Copyright © 2019. All rights reserved.