Figure

Figure – points, sides, angles, bound
Figure

private static final Point[] trianglePoints = { new Point(10, 0), new Point(0, 10), new Point(10, 10) };
private static final Point[] rectanglePoints = { new Point(0, 0), new Point(0, 20), new Point(30, 20), new Point(30, 0) };
private static final Point[] trapezoidPoints = { new Point(10, 0), new Point(0, 20), new Point(30, 20), new Point(20, 0) };
private static final Point[] squarePoints = { new Point(0, 0), new Point(0, 20), new Point(20, 20), new Point(20, 0) };
private static final Point[] parallelogramPoints = { new Point(10, 0), new Point(0, 20), new Point(20, 20), new Point(30, 0) };
private static final Point[] rhombusPoints = { new Point(10, 0), new Point(0, 20), new Point(10, 40), new Point(20, 20) };
private static final Point[] kitePoints = { new Point(10, 0), new Point(0, 10), new Point(10, 40), new Point(20, 10)};