proj home

Files   Classes   Functions   Hierarchy  

disktest Class Reference

#include <disktest.h>

List of all members.

Static Public Member Functions

static void test00 ()
 Test a simple case of disk at origin intersecting a plane through the origin.


Detailed Description

Definition at line 4 of file disktest.h.


Member Function Documentation

void disktest::test00 (  )  [static]

Test a simple case of disk at origin intersecting a plane through the origin.

Definition at line 7 of file disktest.cpp.

References disk::intersects(), and SHOW.

Referenced by main().

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 }


The documentation for this class was generated from the following files:

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