classes d2line d2line_seg feround inside

`obj = new GUIMath()`

GUIMath

`d = math.d2line(xpoint, ypoint, xline0, yline0, xline1, yline1)`

GUIMath

`d = math.d2line_seg(xpoint, ypoint, xline0, yline0, xline1, yline1)`

GUIMath

`boolean = math.inside(xpoint, ypoint, left, bottom, right, top)`

GUIMath

`mode = math.feround()`

`lastmode = math.feround(mode)`

This function is useful to determine if a simulation depends unduly on double precision round-off error.

objref gm gm = new GUIMath() {printf("default rounding mode %d\n", gm.feround())} proc test_round() {local i, old, x localobj gm gm = new GUIMath() old = gm.feround($1) x = 0 for i=1, 1000000 x += 0.1 printf("rounding mode %d x=%25.17lf\n", $1, x) gm.feround(old) } for i=1, 4 test_round(i)