How to determine if a point given is within a line (two points)

Chamika_Kasun
Tue, 07 Nov 2023 11:05:25 +0000
Geo

I have got a line with two points and a single point. I need to check whether the single point is between the line (i.e. between the two points) given, including the two points given.

How do I do that using Julia.

line_string = [
                 [
                   145.06226370532733,
                   -37.90964817711629
                 ],
                 [
                   145.06220165065736,
                   -37.90997457594736
                 ]
               ]

point = [145.06220165065736, -37.90997457594736]

13 posts - 6 participants