Loading...
Logo
Processing Forum

3D geometry question

in Programming Questions  •  2 years ago  
I'm working on a sketch in which I must compare a series of points against a series of line segments and determine if the points lie within x distance of the lines, or not. I'm having trouble with the math.  I'm guessing that many of you have solved this efficiently, any help is greatly appreciated.

Replies(1)

Often, it is matter of finding the right words in the Web search. For example, I found About Lines and Distance of a Point to a Line (2D & 3D) which seems quite complete on the topic. A bit mathematically oriented, but the final formulae seems quite straightforward, and there is a code example.