tag:blogger.com,1999:blog-3993498847203183398.post1503563948060204660..comments2024-11-04T06:33:15.477+00:00Comments on RevK<sup>®</sup>'s ramblings: Distance of point to line in four dimensions (or more)RevKhttp://www.blogger.com/profile/12369263214193333422noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3993498847203183398.post-30250695788266806442024-01-14T10:54:46.092+00:002024-01-14T10:54:46.092+00:00I had to do this for an in car GPS at one point. ...I had to do this for an in car GPS at one point. Did a proper distance calc (more or less convert to radians and multiply by the radius of the earth, but that bit I copied from the internet.. took a few goes to find one that actually worked in the real world) and added in curve compensation for speed (basic trig if you treat a curve as more or less a triangle over short distances) and height change compensation (again just a triangle).. got it pretty accurate.Tony Hoylehttps://www.blogger.com/profile/06485210895681350152noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-19032493387494607572024-01-13T13:08:35.575+00:002024-01-13T13:08:35.575+00:00Interesting. I have solved anyway for off end of A...Interesting. I have solved anyway for off end of A and B, but also by using time, even a straight line A-B-C-B-C-D would pick up that the distance and time are not clean so see a "corner" at C and second B.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-77197544362780544242024-01-13T13:06:32.503+00:002024-01-13T13:06:32.503+00:00I wrote some CAM software that simplified toolpath...I wrote some CAM software that simplified toolpaths in a similar way, but instead of using the perpendicular distance from the line, I measured the angle in the corner, and said we could omit the middle point if the angle was small enough. That would seem to solve the "turning back" problem, maybe it would be a useful idea for you.Anonymousnoreply@blogger.com