Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Intersection.cpp

Go to the documentation of this file.
00001 #include "Intersection.h"
00002 
00003 REGISTER_IMPLICIT(Intersection,"BinaryOp:Intersection");
00004 
00005 /**
00006  * Called by the various constructors to allow for a single location for
00007  * the init of an Intersection object.
00008  * @param f    One function to be intersected.
00009  * @param g    The other function to be intersected.
00010  * @param cont  The continuity to be provided.
00011  */
00012 void Intersection::init(Implicit* f, Implicit* g, double cont)
00013 {
00014   m_f = f;
00015   m_g = g;
00016   m_cont = cont;
00017   m_sign = 1;
00018 }
00019 
00020 /**
00021  * Default constructor.
00022  */
00023 Intersection::Intersection() 
00024 {
00025   init(NULL,NULL,1.0);
00026 }
00027 
00028 /**
00029  * Constructor for an Intersection.
00030  * @param f    One function to be intersected.
00031  * @param g    The other function to be intersected.
00032  */
00033 Intersection::Intersection(Implicit *f, Implicit *g) 
00034 { 
00035   init(f,g,1.0);
00036 }
00037 
00038 /**
00039  * Constructor for an Intersection.
00040  * @param f    One function to be intersected.
00041  * @param g    The other function to be intersected.
00042  * @param cont  The continuity to be provided.
00043  */
00044 Intersection::Intersection(Implicit *f, Implicit *g, double cont) 
00045 { 
00046   init(f,g,cont);
00047 }
00048 

Generated on Mon Jun 28 14:58:16 2004 for Advanced Surface Library by doxygen 1.3.4