How can I find the first point along a heading that is a specified distance away from a line segment? -
Look for the first point with this title, looking at a starting point, a headline, a distance, and a line segment
The first case: moving away from the line. The distance specified from this line segment is far.
I have covered two cases, but I have not been able to cover the last one. Ignore it, even if the starting point is within the specified distance.
The second case: This intersects the line I solved it using the triangle and triangle and did not initially consider the next matter.
The third case: It is moving towards the line, but it does not interfere with each other. I think this will also fix the second case if it has been done correctly.
Three subsystems:
-
Ignore the minimum distance that is longer than the specified distance.
-
The minimum line distance is equal to the specified distance. Already got points.
-
The minimum line distance is less than the specified distance. This means that there is a perpendicular line from the title to the end point of the title section, which is less than the required distance. It also means that there will be two lines of distance required on either side of this straight line. One is perpendicular to the title, while the second is the closest to the same end point and there is no vertical at the top. It is just an issue of finding and seeing those things which is close to the starting point.
This is the place where I got trapped today, it was easy to attract, but vector calcis or whatever was difficult.
It is possible to repeat it as:
At what time (code) P (t) = <0> line segment
l (x1 , Y1), (x2, y2))
? At the distance of
v = (sin (title), -cos (title)
in my case.
Shoot your solution does not always work I got an example of a counter:
< P> line segment = (0,0) -> (0,14)start point = (19, 6) @ top-15 9.5 or 200.5 west / counter-whitewice
This line will cut (2.952, 0.0). I ask, where does it come from within 0.0 distance.
The result I get is wrong.
< / P>
I How can I tell which ones will use your solution and who will not work, depending on whether the minimum start distance between the point and line segment creates a straight line.
If I go next I can post another picture in the post, then I will put a successful example.
I have to post some code for the sage who used to produce these images but the code tag unfortunately accepts the python Hey!
Comments
Post a Comment