import java.applet.Applet; import java.awt.*; public class Ruum3 extends Applet implements Runnable{ double r=60; double nurk=0; double[] algnurgad={0, 3.14/2, 3.14, 3.14*3/2, 0, 3.14/2, 3.14, 3.14*3/2}; double suurendus=40; double nihe=100; double[] yid={-30, -30, -30, -30, 100, 100, 100, 100}; int[][] jooned={ {0,1}, {1,2}, {2,3}, {3,0}, {4,5}, {5,6}, {6,7}, {7,4}, {0,4}, {1,5}, {2,6}, {3,7} }; double nurgamuutus=0.1; //rad int ooteaeg=100; //ms boolean veel=true; int keskx=100; //keskkoht ekraanipunktides int kesky=100; //keskkoht ekraanipunktides public Ruum3(){ new Thread(this).start(); } public void paint(Graphics g){ for(int i=0; i