フィルターのクリア

Finding the point

2 ビュー (過去 30 日間)
bes
bes 2011 年 10 月 11 日
I know the equation of a line N. there is a point P =(a,b) lying on the same plane. (not in that line) how can i find whether that point (a,b) lies right hand side of that line N or lefthand side? shall i find that by finding the normal vector to that line N

採用された回答

Igor de Britto
Igor de Britto 2011 年 10 月 11 日
Right or left hand side means above or under the line?
If so:
line_eq = k*x + n
P = (a,b)
if k*a + n > b
'under the line'
elseif if k*a + n < b
'above the line'
else
'on the line'
end
  3 件のコメント
Walter Roberson
Walter Roberson 2011 年 10 月 11 日
m = k
c = n
and now k*x + n is the same as m*x + c
bes
bes 2011 年 10 月 11 日
thankyou. this works fine

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by