public class Parameters { /* * These are just the static parameters of the applet, * that are accessible from every class. */ // epsilon used for robustness public static final double EPSILON = 0.001; public static final double EPSILON2 = EPSILON*EPSILON; // what distance (in pixels) is considered close enough public static final int NEAR = 5; public static final int NEAR2 = NEAR*NEAR; // used for classifying vertices and segments wrt half-planes public static final int COINCIDENT = 0; public static final int IN_FRONT = 1; public static final int IN_BACK = 2; public static final int SPANNING = 3; // screen size public static final int WIDTH = 400; public static final int HEIGHT = 400; // different modes of the applet public static final int DEFAULT_MODE = 0; public static final int SEGMENT_INPUT_MODE = 1; public static final int SEGMENT_MODIFY_MODE = 2; public static final int EYE_INPUT_MODE = 3; public static int mode = DEFAULT_MODE; // for dragging the segment or endpoints public static final int NIL = 4; // dragging nothing public static final int P = 5; // dragging p of the segment public static final int Q = 6; // dragging q of the segment public static final int S = 7; // dragging the segment // should i display everything? public static boolean show_ordering = true; }