comparison doodle/main/prog/doodler.d @ 33:157b4ad5615d

Added intersection code for lines and segments. Wrote my first unit test to for geometry stuff.
author David Bryant <bagnose@gmail.com>
date Sun, 30 Aug 2009 01:34:14 +0930
parents 1754cb773d41
children 3f6bb0bb22dc
comparison
equal deleted inserted replaced
32:705817d8514a 33:157b4ad5615d
32 window.add(vbox); 32 window.add(vbox);
33 window.setDefaultSize(380, 380); 33 window.setDefaultSize(380, 380);
34 window.showAll(); 34 window.showAll();
35 Main.run(); 35 Main.run();
36 36
37 /*
38 Point p3 = Point.DEFAULT;
39
40 Point p1 = Point(3.0, 5.0);
41 writefln("%s", p1);
42
43 Point p2 = Point(1.0, 2.0);
44 writefln("%s", p2);
45
46 writefln("%s", p1 - p2);
47
48 Rectangle r = Rectangle(p1, p2);
49 writefln("%s", r);
50 */
51 } 37 }