You might want to review the linear algebra text book of freshman's course in most college.
First of all, let's make some vectors based on your given points:
b=B-A
c=C-A
d=D-A
, In other words, we simply let A be the original point.Vectors b, c, and d are connecting from A to B, to C, and to D, respectively.We are going to answer your questions based on these vectors.
To check if A, B, and C are not in a straight line, we simply need to check if vector b and c are independent.We use the rank of matrix with verctor b and c to determine:
r = rank([b c])
Here we assume b and c are column vectors.(If b and c are row vectors, r = rank([b;c]) in Matlab)Now, If r=2, vector b and c are independent, in other words, A, B and C are not in one straight line, they can determine a plane.
We assume b and c are independent now.We use the following steps to obtain a basis:
(1) take b as the first vector: v1 = b
(2) get the normal vector of the plane determined by b and c:
v3 = cross(b,c)
(3) get the third vector which is orthogonal to both v1 and v3:
v2 = cross(v3, v1)
*Note: v2 must be on the plane defined by b and c, or equavilently by A, B and C
(4) normalize v1, v2 and v3, we get:
e1 = v1 / norm(v1)
e2 = v2 / norm(v2)
e3 = v3 / norm(v3)
Then, e1, e2 and e3 form a basis of whole 3D spance.
To get the projection of D onto plane ABC, you can get the inner product of d and each vector of the basis :
p1 = dot(d,e1)
p2 = dot(d,e2)
p3 = dot(d,e3)
Then:
projectionOfDOntoABC = p1*e1+p2*e2+p3*e3
Finally, e1 and e2 form a basis of the plane ABC. You can use (p1,p2) as the coordinates with respect to the basis e1,e2 to refer a point on the plane.
在MATLAB中,已知一個點坐標和一個由三點組成的平面(這三點坐標已知),求這個點在這個平面上的投影坐標
在MATLAB中,已知一個點坐標和一個由三點組成的平面(這三點坐標已知),求這個點在這個平面上的投影坐標
例如,已知點A,B,C,D,怎么求點D在平面ABC上的投影點坐標.
還有一點:怎么把這些三維坐標換算成平面ABC上的二維坐標
這是想用在一個程序里的,希望高手作答,能用編程語言簡單實現(xiàn)
有請高手現(xiàn)身!
例如,已知點A,B,C,D,怎么求點D在平面ABC上的投影點坐標.
還有一點:怎么把這些三維坐標換算成平面ABC上的二維坐標
這是想用在一個程序里的,希望高手作答,能用編程語言簡單實現(xiàn)
有請高手現(xiàn)身!
其他人氣:915 ℃時間:2020-04-06 11:45:36
優(yōu)質(zhì)解答
我來回答
類似推薦
- 已知一點坐標和平面方程,求此點在平面上的投影點的坐標.
- 已知一個點坐標和一個由三點組成的平面(這三點坐標已知),求這個點在這個平面上的投影坐標.
- 已知空間三點A,B,C的坐標分別是(1,-1,-1)(0,1,2)(0,6,6),則向量OC在平面OAB的法向量方向上的投影
- 點到平面的投影 已知點A(1,2,-3)求點A在平面2x+3y-5z+1=0上的投影,
- 已知平面的水平投影呵正面投影,求其側(cè)面投影
- 美利堅合眾國各州The States of the United States of America
- what do you like to do英語作文,越多越好
- 意思是形容失意時情緒低落,提不起精神的樣子的四字詞語
- A,B,C為中學化學常見化合物,甲,乙,丙為單質(zhì)
- 一件成品為200元的商品標出的價格為400元,現(xiàn)打7.5折出售此商品,則可獲得利潤 元,其利潤為
- 正方形的邊長為4厘米,剪去四個角后成為一個正八邊形.求這個正八邊形的邊長和面積
- 先判斷x與y成什么比例,再填表
猜你喜歡
- 1island怎么讀
- 2whereis she?怎么轉(zhuǎn)換為do you know where she is
- 3求軍訓1000字的心得體會!
- 4帶橋字的成語 越多越好
- 5and only want to sleep with you and have babies with you..maybe i am nota good englsh teacher
- 6請問,正電荷可不可以移動?還有,神經(jīng)纖維和神經(jīng)元有關(guān)系嗎?
- 7The studengts have a long holiday in some parts of the US.The school year begins in late August or early Septembeer,and
- 8西電東送工程中,中線和南線的電力主要來自于對河流中上游的梯級開發(fā),流域梯級開發(fā)除發(fā)電外,對區(qū)域經(jīng)濟發(fā)展帶來的有利影響有什么(4個)
- 9,甲乙兩筐蘋果共112個,如果從甲筐中拿出蘋果給乙筐,再從乙框中拿出五分之一放入甲筐,結(jié)果兩筐蘋果就一樣
- 10英語翻譯
- 11that was a statement
- 12生物圈和生態(tài)系統(tǒng)的概念