point project(point a,point b,point c)
{
point base=b-a;
double r=dot(base,c-a)/base.norm();
base=base*r;
return a+base;
};
映像:
point project(point a,point b,point c)
{
point base=b-a;
double r=dot(base,c-a)/base.norm();
base=base*r;
return a+base;
};
映像: