Minimize distance to hyperplane given set of points

106 Views Asked by At

I have two points that are used to create a parametric line equation. One of this points is on hyperplane and a set of points that are on one side of that hyperplane. How can I rotate hyperplane in such a way that it still passes point previously mentioned and minimise the distance to this hyperplane for the set of points.