I would like to compute the plane which is tangent with a given sphere (see Fig 1 on the attached figure).
Known parameters are the following:
- Point P (§x_1, y_1, z_1§) belongs to the plane. One “orientation” of the plane is given by the vector §_vec{u}§
- The center of the sphere § x_c y_c z_c § and its radius R are known
On Fig 2 on the attached figure, I try to explain why I am facing such problem. I have developed a humanoid robot with a thigh which makes an angle with respect to the leg. It means that there is always a constant distance (R) – whatever the rotation of the thigh is - between the Pelvic and the leg.The foot is articulated with a forefoot and a midfoot.
If I want to compute the orientation of the leg and thigh with respect to a given position of the Pelvic and the Foot, I come with the geometrical problem of computing a plane tangent with a sphere whose center is the extremity of the Pelvic.
I hope that the problem is clearly explained and if somebody can provide an answer it will be wonderful enter image description here