moldenv.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "moldenv.h"
#include "pathproc.h"
#include "genv.h"
#include <math.h>

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define CHECKAGAINST(var, vdist, near)

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")


Define Documentation

#define CHECKAGAINST var,
vdist,
near   ) 
 

Value:

{           \
                            dx = Coords[c].x - near.x;                      \
                            dy = Coords[c].y - near.y;                      \
                            dist = (INT32)sqrt((double)((dx * dx) + (dy * dy)));    \
                            BOOL notused = TRUE;                            \
                            for(INT32 l = 0; l < 4; l++)                        \
                            {                                               \
                                if(Corners[l] == c)                         \
                                    notused = FALSE;                        \
                            }                                               \
                            if(notused && (var == -1 || dist < vdist))      \
                            {                                               \
                                vdist = dist;                               \
                                var = c;                                    \
                            }                                               \
                        }

#define new   CAM_DEBUG_NEW
 

Definition at line 126 of file moldenv.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 


Generated on Sat Nov 10 03:49:15 2007 for Camelot by  doxygen 1.4.4