Skip to content

distance_pointline

float  distance_pointline(vector Q, vector O, vector D)

This function returns the closest distance between the point Q and the infinite line parallel to D going through point O. The direction vector D does not have to be normalized.