Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

/home/romer/TST0.1.3/conrec.cpp File Reference

#include <stdio.h>
#include <math.h>
#include "graph.h"
#include "conrec.h"

Defines

#define xsect(p1, p2)   (h[p2]*xh[p1]-h[p1]*xh[p2])/(h[p2]-h[p1])
#define ysect(p1, p2)   (h[p2]*yh[p1]-h[p1]*yh[p2])/(h[p2]-h[p1])
#define min(x, y)   (x<y?x:y)
#define max(x, y)   (x>y?x:y)

Functions

int conrec (double **d, int ilb, int iub, int jlb, int jub, double *x, double *y, int nc, double *z, Graphics *g, int colour)
 Paul Bourke's conrec algorithm to draw contour lines of PDE fields.


Define Documentation

#define max x,
 )     (x>y?x:y)
 

#define min x,
 )     (x<y?x:y)
 

#define xsect p1,
p2   )     (h[p2]*xh[p1]-h[p1]*xh[p2])/(h[p2]-h[p1])
 

#define ysect p1,
p2   )     (h[p2]*yh[p1]-h[p1]*yh[p2])/(h[p2]-h[p1])
 


Function Documentation

int conrec double **  d,
int  ilb,
int  iub,
int  jlb,
int  jub,
double *  x,
double *  y,
int  nc,
double *  z,
Graphics g,
int  colour = 1
 

Paul Bourke's conrec algorithm to draw contour lines of PDE fields.

C-code Copyright (c) 1996-1997 Nicholas Yue.


Generated on Tue Dec 12 16:32:41 2006 for Tissue Simulation Toolkit by doxygen 1.3.5