Re: circle and point

2005-11-14 Thread Robert Kern
Ben Bush wrote: > is there any python code doing this: > there are two line segments (2x+y-1=0 with the coordinates of two ending > points are (1,-1) and (-1,3); > x+y+6=0 with the coordinates of two ending points are (-3,-3) and > (-4,-2);). They extend and when they meet each other, stop extendin

Re: circle and point

2005-11-14 Thread Ben Bush
is there any python code doing this: there are two line segments (2x+y-1=0 with the coordinates of two ending points are (1,-1) and (-1,3); x+y+6=0 with the coordinates of two ending points are (-3,-3) and (-4,-2);). They extend and when they meet each other, stop extending. how can i use python t

Re: circle and point

2005-11-12 Thread Ben Bush
On 11/12/05, Robert Kern <[EMAIL PROTECTED]> wrote: Ben Bush wrote:> is there any code to decide whether a point is located within the circle> by three other points? # Converted from my C++ code.# C.f. http://www.ics.uci.edu/~eppstein/junkyard/circumcenter.htmldef circumcenter(x0, y0, 

Re: circle and point

2005-11-12 Thread Robert Kern
Ben Bush wrote: > is there any code to decide whether a point is located within the circle > by three other points? # Converted from my C++ code. # C.f. http://www.ics.uci.edu/~eppstein/junkyard/circumcenter.html def circumcenter(x0, y0, x1, y1, x2, y2): x0m2