diff options
Diffstat (limited to 'src/bltGrElemOp.C')
-rw-r--r-- | src/bltGrElemOp.C | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bltGrElemOp.C b/src/bltGrElemOp.C index ab56db2..01444e4 100644 --- a/src/bltGrElemOp.C +++ b/src/bltGrElemOp.C @@ -46,6 +46,9 @@ extern "C" { #define ELEM_SOURCE_VALUES 0 #define ELEM_SOURCE_VECTOR 1 +#define SetRange(l) ((l).range = ((l).max > (l).min) ? ((l).max - (l).min) : DBL_EPSILON) +#define SetWeight(l, lo, hi) ((l).min = (lo), (l).max = (hi), SetRange(l)) + // Defs extern int Blt_GetPenFromObj(Tcl_Interp* interp, Graph* graphPtr, |