PointLineDistance with intersection point?

Miscellaneous Forums/General Discussion/PointLineDistance with intersection point?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Does anyone have a function for the distance between a 3D point and line or ray, with the intersection point?

Here it is without the intersection point:
http://www.blitzmax.com/codearcs/codearcs_bb/1870.bb