Re: Python Line Intersection

2010-04-09 Thread Lie Ryan
On 04/10/10 16:24, Mark Tolonen wrote: > > "Chris Rebert" wrote in message > news:y2o50697b2c1004091304u627d99bfj44ad56fa76a3c...@mail.gmail.com... >> On Fri, Apr 9, 2010 at 11:43 AM, John Nagle wrote: >>> Chris Rebert wrote: On Fri, Apr 9, 2010 at 8:04 AM, Peyman Askari wrote: >

Re: Python Line Intersection

2010-04-09 Thread Mark Tolonen
"Chris Rebert" wrote in message news:y2o50697b2c1004091304u627d99bfj44ad56fa76a3c...@mail.gmail.com... On Fri, Apr 9, 2010 at 11:43 AM, John Nagle wrote: Chris Rebert wrote: On Fri, Apr 9, 2010 at 8:04 AM, Peyman Askari wrote: Hello This is partly Python related, although it might end

Re: Python Line Intersection

2010-04-09 Thread Chris Rebert
On Fri, Apr 9, 2010 at 11:43 AM, John Nagle wrote: > Chris Rebert wrote: >> On Fri, Apr 9, 2010 at 8:04 AM, Peyman Askari >> wrote: >>> >>> Hello >>> >>> This is partly Python related, although it might end up being more math >>> related. >>> >>> I am using PyGTK (GUI builder for Python) and I ne

Re: Python Line Intersection

2010-04-09 Thread lepy
> See Wikipedia for the usual solution, given points on both lines: > >        http://en.wikipedia.org/wiki/Line-line_intersection # -*- coding: utf-8 -*- import numpy as N def intersect(line1, line2): """\begin{align} P(x,y)= \bigg(&\frac{(x_1 y_2-y_1 x_2)(x_3-x_4)- (x_1-x_2)(x_3 y_4-y_3 x_4)

Re: Python Line Intersection

2010-04-09 Thread John Nagle
Chris Rebert wrote: On Fri, Apr 9, 2010 at 8:04 AM, Peyman Askari wrote: Hello This is partly Python related, although it might end up being more math related. I am using PyGTK (GUI builder for Python) and I need to find the intersection point for two lines. It is easy to do, even if you onl

Re: Python Line Intersection

2010-04-09 Thread Josh English
On Apr 9, 8:36 am, Emile van Sebille wrote: > On 4/9/2010 8:04 AM Peyman Askari said... > > > Hello > > > This is partly Python related, although it might end up being more math > > related. > > > I am using PyGTK (GUI builder for Python) and I need to find the > > intersection point for two lin

Re: Python Line Intersection

2010-04-09 Thread Chris Rebert
On Fri, Apr 9, 2010 at 8:04 AM, Peyman Askari wrote: > > Hello > > This is partly Python related, although it might end up being more math > related. > > I am using PyGTK (GUI builder for Python) and I need to find the intersection > point for two lines. It is easy to do, even if you only have t

Re: Python Line Intersection

2010-04-09 Thread Gary Herron
Peyman Askari wrote: Hello This is partly Python related, although it might end up being more math related. I am using PyGTK (GUI builder for Python) and I need to find the intersection point for two lines. It is easy to do, even if you only have the four points describing line segments (h

Re: Python Line Intersection

2010-04-09 Thread Emile van Sebille
On 4/9/2010 8:04 AM Peyman Askari said... Hello This is partly Python related, although it might end up being more math related. I am using PyGTK (GUI builder for Python) and I need to find the intersection point for two lines. It is easy to do, even if you only have the four points describin

Python Line Intersection

2010-04-09 Thread Peyman Askari
Hello This is partly Python related, although it might end up being more math related. I am using PyGTK (GUI builder for Python) and I need to find the intersection point for two lines. It is easy to do, even if you only have the four points describing line segments (http://www.maths.abdn.ac.u