フィルターのクリア

Calculating the projection of a point onto a plane

52 ビュー (過去 30 日間)
Milton Niklasson
Milton Niklasson 2021 年 9 月 20 日
編集済み: Yongjian Feng 2021 年 9 月 20 日
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 件のコメント
John D'Errico
John D'Errico 2021 年 9 月 20 日
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?

サインインしてコメントする。

回答 (1 件)

Yongjian Feng
Yongjian Feng 2021 年 9 月 20 日
編集済み: Yongjian Feng 2021 年 9 月 20 日
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.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by