接续,继续更新
目录
1、计算向量的投影
cpp
Point3d a(1, 20, 0);
Point3d b(10, 0, 0);
Point3d b_hat = b / norm(b);//b的模
Point3d a_pro = a.dot(b_hat) * b_hat;
接续,继续更新
目录
Point3d a(1, 20, 0);
Point3d b(10, 0, 0);
Point3d b_hat = b / norm(b);//b的模
Point3d a_pro = a.dot(b_hat) * b_hat;