Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDetermine straight line Pin
tagopi7-Aug-12 1:04
tagopi7-Aug-12 1:04 
Hello everybody,

i am having n-number of points like p1(x,y), p2(x,y), p3(x,y), .... pn(x,y). All points lie on a single line.(either a curve or a straight line). i would like to find, using those points, whether that line is straight or not straight.
i googled and tried some of the methods given in examples, (straight line equation, finding if collinear) but those are not working fine even for straight line also.


i am using visual studio 2008 with win32 (not MFC).

Any ideas ?

Thanks in advance,
A. Gopinath.
SuggestionRe: Determine straight line Pin
Richard MacCutchan7-Aug-12 1:17
mveRichard MacCutchan7-Aug-12 1:17 
GeneralRe: Determine straight line Pin
tagopi7-Aug-12 1:29
tagopi7-Aug-12 1:29 
GeneralRe: Determine straight line Pin
Amarnath S7-Aug-12 1:18
professionalAmarnath S7-Aug-12 1:18 
GeneralRe: Determine straight line Pin
tagopi7-Aug-12 1:30
tagopi7-Aug-12 1:30 
GeneralRe: Determine straight line Pin
Amarnath S7-Aug-12 1:45
professionalAmarnath S7-Aug-12 1:45 
GeneralRe: Determine straight line Pin
tagopi7-Aug-12 1:49
tagopi7-Aug-12 1:49 
GeneralRe: Determine straight line Pin
Eugen Podsypalnikov7-Aug-12 4:14
Eugen Podsypalnikov7-Aug-12 4:14 
GeneralRe: Determine straight line Pin
Amarnath S7-Aug-12 1:51
professionalAmarnath S7-Aug-12 1:51 
SuggestionRe: Determine straight line Pin
Albert Holguin7-Aug-12 1:40
professionalAlbert Holguin7-Aug-12 1:40 
GeneralRe: Determine straight line Pin
tagopi7-Aug-12 1:50
tagopi7-Aug-12 1:50 
AnswerRe: Determine straight line Pin
pasztorpisti7-Aug-12 5:57
pasztorpisti7-Aug-12 5:57 
AnswerRe: Determine straight line Pin
CPallini7-Aug-12 21:17
mveCPallini7-Aug-12 21:17 
QuestionC++ middleware with GUI in C Pin
Member 83997696-Aug-12 20:02
Member 83997696-Aug-12 20:02 
AnswerRe: C++ middleware with GUI in C Pin
Richard MacCutchan6-Aug-12 20:59
mveRichard MacCutchan6-Aug-12 20:59 
GeneralRe: C++ middleware with GUI in C Pin
Member 83997696-Aug-12 21:58
Member 83997696-Aug-12 21:58 
GeneralRe: C++ middleware with GUI in C Pin
Richard MacCutchan6-Aug-12 22:46
mveRichard MacCutchan6-Aug-12 22:46 
GeneralRe: C++ middleware with GUI in C Pin
JohnAspras6-Aug-12 21:21
JohnAspras6-Aug-12 21:21 
GeneralRe: C++ middleware with GUI in C Pin
Software_Developer6-Aug-12 22:42
Software_Developer6-Aug-12 22:42 
AnswerRe: C++ middleware with GUI in C Pin
pasztorpisti7-Aug-12 11:53
pasztorpisti7-Aug-12 11:53 
GeneralRe: C++ middleware with GUI in C Pin
Member 83997697-Aug-12 19:18
Member 83997697-Aug-12 19:18 
GeneralRe: C++ middleware with GUI in C Pin
pasztorpisti7-Aug-12 21:13
pasztorpisti7-Aug-12 21:13 
GeneralNeed help for a Ray Cast Function Pin
SD1016-Aug-12 8:15
SD1016-Aug-12 8:15 
GeneralRe: Need help for a Ray Cast Function Pin
Wes Aday6-Aug-12 8:20
professionalWes Aday6-Aug-12 8:20 
GeneralRe: Need help for a Ray Cast Function Pin
Software_Developer6-Aug-12 9:02
Software_Developer6-Aug-12 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.