필터 지우기
필터 지우기

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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by