proj home

Files   Classes   Functions   Hierarchy  

disktest.cpp

Go to the documentation of this file.
00001 
00002 #include <disk.h>
00003 #include <disktest.h>
00004 #include <plane.h>
00005 #include <print.h>
00006 
00007 void disktest::test00()
00008 {
00009   typedef point3<double> pt3;
00010 
00011   disk z( pt3(0.0,0.0,1.0), pt3(), 1.0 );
00012 
00013   cout << "disk:  " << (stringc)z << endl;
00014 
00015   plane pl( pt3(0.0,1.0,0.0), 0.0 );
00016 
00017   cout << "plane:  " << (stringc)pl << endl;
00018 
00019   pt3 a;
00020   pt3 b;
00021 
00022   bool res;
00023   res = z.intersects(a,b,pl);
00024   cout << SHOW(res) << endl;
00025   cout << SHOW(a) << endl;
00026   cout << SHOW(b) << endl;
00027 }
00028 
00029 

Generated on Fri Mar 4 00:49:28 2011 for Chelton Evans Source by  doxygen 1.5.8