I need to find out, if segment n is on the same side of the point F with segment XY.
All lines and segments are parallel, and length of the segments are same. In the illustration red segment AB is on the left side (of the line that strikes through point F). Blue segment CD is right (out)side given criteria.
How do you determine these two case in GeoGebra or Python?
Special case when segment is on F or E lines should be considered too. I hope this was enough for problem description.
Here is how you could do it
explanation: vector
u
is orthogonal to XY. The points that have a given scalar product withu
form a line parallel to XY. ForF
this scalar product isdelta
. By optionally changing the sign ofu
, one can havedelta
greater for F than for X. Now the points which scalar product with u is greater than delta are on a parallel line that is farther from XY than the point FEdit: sorry for the bugfix