GUIMath

classes
   d2line         d2line_seg     inside         

SYNTAX

obj = new GUIMath()

DESCRIPTION

Contains functions which calculate common relationships between graphics objects.


d2line

GUIMath

SYNTAX

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

DESCRIPTION

Return distance between the point (xpoint,ypoint) and the (infinitely long) line defined by the 0 and 1 points.


d2line_seg

GUIMath

SYNTAX

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

DESCRIPTION

Return distance between the point (xpoint,ypoint) and the line segment line defined by the 0 and 1 points.


inside

GUIMath

SYNTAX

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

DESCRIPTION

return 1 if the point is inside the box, 0 otherwise


neuron/general/classes/guimath.hel : 680 Jul 19