how to calculate distance of point to line with vector

how to calculate distance of point to line with vector?
a geometry addon in of?

I don’t think it’s officially in any of the OF libraries but there is an implementation on Paul Bourkes site http://paulbourke.net/geometry/pointline/ It’s definitely a site worth book marking for all kinds of things: projection, stereo imaging, geometric operations, etc.