Re: Intersect Function

2018-09-24 Thread dunbarxx via use-livecode
I believe the OP was talking about two arbitrary lines, likely graphic objects, that intersect each other. Not rectangles with points within them, or two rectangles. I think the only way to do this is as per the first four posts in this thread. Craig -- Sent from:

Re: Intersect Function

2018-09-24 Thread hh via use-livecode
> Jerry J. wrote: > I think he mentioned curved “lines”. That is a > whole other kettle of fish. The OP speaks of "functions for the lines", so either he means "math lines" or, as you say, continuous curves, say polynomials. Yes, this isn't solvable for polynomials of higher degree by formulas

Re: Intersect Function

2018-09-24 Thread Richmond Mathewson via use-livecode
It is, and INTERSECT with them is just a distraction. Probably time (shock, horror) to do some Mathematics. On Mon, Sep 24, 2018, 11:36 PM Jerry Jensen via use-livecode < use-livecode@lists.runrev.com> wrote: > I think he mentioned curved “lines”. That is a whole other kettle of fish. > .Jerry >

Re: Intersect Function

2018-09-24 Thread Richmond Mathewson via use-livecode
One could have a line consisting of a graphic object (rectangle) with a width of one. ? On Mon, Sep 24, 2018, 10:17 PM hh via use-livecode < use-livecode@lists.runrev.com> wrote: > @Richmond. > > You (and the author) overlooked that we have, since 1.0, > is within . > >

Re: Intersect Function

2018-09-24 Thread Jerry Jensen via use-livecode
I think he mentioned curved “lines”. That is a whole other kettle of fish. .Jerry > On Sep 24, 2018, at 9:23 AM, hh via use-livecode > wrote: > > It is not this complicated. Only if you are looking for > the intersection of two line *segments* you have do a > few more checks.

Re: Intersect Function

2018-09-24 Thread hh via use-livecode
@Richmond. You (and the author) overlooked that we have, since 1.0, is within . ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Intersect Function

2018-09-24 Thread Richmond Mathewson via use-livecode
I found THIS in the User contributed notes in the 7.1.4 documentation from 2009: "The intersect() command takes two objects as inputs. In some situations, it may be useful to find the intersect of a point and a rectangle. The custom function below may be used in those cases: function

Re: Intersect Function

2018-09-24 Thread hh via use-livecode
It is not this complicated. Only if you are looking for the intersection of two line *segments* you have do a few more checks. A LC object "line" is a line segment given by two pairs of points (x,y). The OP probably mean with line the math object line that is given by and passing through these

Re: Intersect Function

2018-09-24 Thread dunbarxx via use-livecode
Well and good. I repeat that in a computer screen, with fixed pixel coordinates, you will likely need just a bit of rounding forgiveness when doing the math. You need to write a bit of code, in other words, that will accept close matches between the string of pixels and the calculated "points"

Re: Intersect Function

2018-09-24 Thread Beat Cornaz via use-livecode
Thanks Craig, I was already afraid of that. Yes, I guess I could figure out the math. I will have the 2 functions of the lines and if I set them equal, I could solve the intersection point of the two. Your way is also valid, but as I need to determine many intersection points, the script might get

Re: Intersect Function

2018-09-24 Thread dunbarxx via use-livecode
Hi. No. But you can determine the points of a line graphic, and calculate all the pixels it "contains" from its starting point to its ending point. Do the same for a second line. Then you can determine the point that seems to be common to both lines. I say seems, because when you do the math,

Intersect Function

2018-09-24 Thread Beat Cornaz via use-livecode
Is there a function to determine the intersection point (x,y) of two lines? The intersect function in LC only gives me a true or false, and I need the exact location (x,y) of the intersection. Thanks, Beat ___ use-livecode mailing list use-livecode