package Current.popups.Deg100; import Current.*; import java.applet.Applet; import java.awt.event.*; import java.awt.*; import java.awt.geom.*; import java.math.*; /**This is a self contained file which verifies that our polygon list for the 100 degree theorem makes a covering. There is some overlay between the geometric routines here and the ones in the Deg100IntegerPolygon class. The largest denominator we see is 2^18, but we need to allow for doing at most 9 subdivisions, so we multiply by the larger 2^27.*/ public class Deg100CoveringPolygon { BigInteger[] K1=new BigInteger[8]; BigInteger[] K2=new BigInteger[8]; int[] right=new int[8]; int n; int age; int index; /**Constructor routines. Basically we take a dyadic polygon and inflate it by 2^27**/ public Deg100CoveringPolygon() {} public Deg100CoveringPolygon(Deg100Polygon P) { this.n=P.n; for(int i=0;i0) { Deg100CoveringPolygon A=X[X_N-1]; int test=checkInside(ML,A,i); if(test>0) { int match=0; for(int jj=0;jj=10) {record[0]=0;return(record);} } } return(record); } /*applies the above algorithm to each of the edges of the polygon*/ public int[][] coveringAlgorithm(Deg100Data D,int i) { Deg100CoveringPolygon[] ML=MasterList(D); int[][] record=new int[10][30]; for(int ii=0;ii