Calculating the projection of a point onto a plane

96 vues (au cours des 30 derniers jours)
Milton Niklasson
Milton Niklasson le 20 Sep 2021
Modifié(e) : Yongjian Feng le 20 Sep 2021
I need to calculate the orthogonal projection of the point x=(3.5,1.5,−1.5) on the plane 4x−4y+4z=12 and also calculate the reflection of point x in the same plane. I have tried my best but i cannot figure out how to do this using MATLAB, any suggestions?
  1 commentaire
John D'Errico
John D'Errico le 20 Sep 2021
This is surely homework. You telling us that you have tried your best merely says that you gave up. And since it is homework, you need to be the one doing the thinking.
Surely you can find the normal vector to the plane defined by that equation? What does it tell you?

Connectez-vous pour commenter.

Réponses (1)

Yongjian Feng
Yongjian Feng le 20 Sep 2021
Modifié(e) : Yongjian Feng le 20 Sep 2021
How about this approach:
Orthogonal projection can be thought as the (smallest) distance from this point to the plane.
Assume that the projection is (a,b,c). Then you have distance d as:
d^2 = (a-3.5)^2+(b-1.5)^2+(c+1.5)^2
Because (a,b,c) is a point on the plane, so you also have
4*a-4*b+4c = 12
Then you can combine the above two, and get
d^2 = (a-3.5)^2+(b-1.5)^2+(b-a+4.5)^2
Now you need to minimize d basically. This will give you a, b, and c.

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by