S
S
Svyatoslav Khusamov2015-12-18 12:58:30
Mathematics
Svyatoslav Khusamov, 2015-12-18 12:58:30

What algorithm or formula can be used to find out if a point is between parallel lines?

There are two parallel lines given by the equation a1x + b1y + c1 = 0 and a2x + b2y + c2 = 0
How to determine if the point P(x, y) is between them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mrrl, 2015-12-18
@khusamov

Calculate (a1*x + b1*y + c1)*(a2*x + b2*y + c2). If its sign is the same as that of a1*a2+b1*b2, then the point belongs to an obtuse angle between the lines, if the other - then to an acute one. In the case of parallel or almost parallel lines, the second case corresponds to the situation "lies between", and the first - "not".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question