/* Dressed Obstacle */ import java.awt.*; import java.util.Vector; public class D_Obstacle { public int npoints; public int shield; public Polygon body; public Polygon boundpoly; public Vector[] scenary; public D_Obstacle() {} public void dress (Polygon obstacle, int rover_width, int rover_height) { int i, upline, downline; double upx, upy, upr, downx, downy, downr, angle, extension; this.npoints = obstacle.npoints; this.shield = Math.min(rover_width,rover_height)/2+1; int myxpoints[] = new int [obstacle.npoints]; int myypoints[] = new int [obstacle.npoints]; for (i=0; i