import java.applet.Applet; import java.awt.event.*; import java.awt.*; import java.awt.geom.*; /**This is our main polygon class.**/ public class PolyWedge { Complex[] z=new Complex[400]; int count; int orbit; int strip; int history; int[] r=new int[2]; /**constructors**/ public PolyWedge() {} public PolyWedge(PolyWedge Q) { this.count=Q.count; for(int i=0;itest) { min=test; index=i; } } return(index); } /**Assuming that the polygon is already dihedrally ordered, this routine returns a specifically counterclockwise ordered version of the polygon.**/ public PolyWedge orient() { boolean test=Complex.isPositivelyOriented(z[0],z[1],z[2]); if(test==true) return(this); PolyWedge Q=new PolyWedge(); Q.count=this.count; for(int i=0;i