Skip to content

distance_pointray

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

This function returns the closest distance between the point Q and the semi-finite ray parallel to D starting at point O. The direction vector D does not have to be normalized.