Skip to content

Commit 0059f5e

Browse files
committed
archive Triangle class
1 parent 4eb7001 commit 0059f5e

3 files changed

Lines changed: 3 additions & 45 deletions

File tree

ch15/Sim2.java

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import java.awt.Polygon;
2+
13
/**
24
* A three-sided polygon.
35
*/
4-
public class Triangle extends RotatingPolygon {
6+
public class Triangle extends Polygon {
57

68
/**
79
* Constructs a triangle at the given points.
@@ -26,7 +28,6 @@ public Triangle(int ax, int ay, int bx, int by, int cx, int cy) {
2628
xpoints = new int[] {ax, bx, cx};
2729
ypoints = new int[] {ay, by, cy};
2830
npoints = 3;
29-
center();
3031
}
3132

3233
/**

0 commit comments

Comments
 (0)