int promenna; int pocet=15; //pocet stangli int[] pozicex = new int[pocet]; int[] pozicey = new int[pocet]; int[] smer = new int[pocet]; int[] delka = new int[pocet]; float[] uhel = new float[pocet]; float[] uhel1 = new float[pocet]; float[] uhel2 = new float[pocet]; float x2; float y2; int[] bsmer = new int[pocet]; int[] bdelka = new int[pocet]; float[] buhel = new float[pocet]; float[] buhel1 = new float[pocet]; float[] buhel2 = new float[pocet]; float bx2; float by2; float[] rychlostPohybu = new float[pocet]; void setup(){ frameRate(60); smooth(); size(1280,1024); for(int i=0; iuhel1[i]){ uhel[i]=uhel1[i]; smer[i]=-1;} if(uhel[i]buhel1[i]){ buhel[i]=buhel1[i]; bsmer[i]=-1;} if(buhel[i]