跳转到内容

distance_pointsegment

float distance_pointsegment(vector Q, vector P0, vector P1)

该函数返回点Q与点P0和P1之间的有限线段之间的最近距离。