tuxmartin

Transformace3D

Nov 15th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. import java.util.ArrayList;
  2.  
  3. import fim.utils.Application;
  4. import transforms3D.*;
  5.  
  6. @SuppressWarnings("serial")
  7. public class Transformace3D extends Application {
  8.    
  9.     ArrayList<Point3D> vrcholy;
  10.     ArrayList<Integer> hrany = new ArrayList<Integer>();
  11.  
  12.     @Override
  13.     public void start() {
  14.         vrcholy = new ArrayList<Point3D>();
  15.         vrcholy.add(new Point3D( 1,  1 , 1));
  16.         vrcholy.add(new Point3D( 1,  1, -1));
  17.         vrcholy.add(new Point3D( 1, -1,  1));
  18.         vrcholy.add(new Point3D( 1, -1, -1));
  19.         vrcholy.add(new Point3D( 1,  1,  1));
  20.         vrcholy.add(new Point3D(-1,  1, -1));
  21.         vrcholy.add(new Point3D(-1,  1,  1));
  22.         vrcholy.add(new Point3D(-1, -1,  1));
  23.         vrcholy.add(new Point3D(-1, -1, -1));
  24.        
  25.        
  26.     }
  27.  
  28.     public static void main(String[] args) {
  29.         new Transformace3D().start();
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment