Click here to Skip to main content
15,891,136 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Linear line Pin
Luc Pattyn25-Jul-07 11:16
sitebuilderLuc Pattyn25-Jul-07 11:16 
GeneralRe: Linear line Pin
CPallini25-Jul-07 11:24
mveCPallini25-Jul-07 11:24 
AnswerRe: Linear line Pin
Habib Ahmed Bhutto30-Jul-07 13:24
Habib Ahmed Bhutto30-Jul-07 13:24 
AnswerRe: Linear line Pin
Habib Ahmed Bhutto30-Jul-07 13:32
Habib Ahmed Bhutto30-Jul-07 13:32 
GeneralRe: Linear line Pin
Dan Neely31-Jul-07 2:09
Dan Neely31-Jul-07 2:09 
AnswerRe: Linear line Pin
Russell'3-Aug-07 4:19
Russell'3-Aug-07 4:19 
GeneralRe: Linear line Pin
Russell'3-Aug-07 4:20
Russell'3-Aug-07 4:20 
AnswerRe: Linear line Pin
stevepqr7-Aug-07 6:02
stevepqr7-Aug-07 6:02 
You could use the equation of a line y=mx+c, we don't know the value of c (and we can't calculate it because the line might not be straight) but we can force it to be zero by shifting all the x,y coordinates by the same amount such that the first point is 0,0 now c=0 and we can calculate m for each point, m=y/x (except for the first point since this will result in divide by zero!)

If the line is straight then the value for m will be the same for each point. Should be relatively easy and quick to code... Smile | :)

Apathy Rules - I suppose...

Questionimages Pin
zainab ibrahim24-Jul-07 22:47
zainab ibrahim24-Jul-07 22:47 
AnswerRe: images Pin
shiraztk26-Jul-07 9:24
shiraztk26-Jul-07 9:24 
QuestionFinding a point on a circle [modified] Pin
max2929720-Jul-07 12:36
max2929720-Jul-07 12:36 
AnswerRe: Finding a point on a circle [modified] Pin
Luc Pattyn20-Jul-07 16:23
sitebuilderLuc Pattyn20-Jul-07 16:23 
GeneralRe: Finding a point on a circle Pin
max2929720-Jul-07 20:09
max2929720-Jul-07 20:09 
GeneralRe: Finding a point on a circle Pin
Luc Pattyn21-Jul-07 0:49
sitebuilderLuc Pattyn21-Jul-07 0:49 
GeneralRe: Finding a point on a circle Pin
Paul Conrad21-Jul-07 5:24
professionalPaul Conrad21-Jul-07 5:24 
GeneralRe: Finding a point on a circle Pin
Luc Pattyn21-Jul-07 6:06
sitebuilderLuc Pattyn21-Jul-07 6:06 
GeneralRe: Finding a point on a circle Pin
Paul Conrad21-Jul-07 6:11
professionalPaul Conrad21-Jul-07 6:11 
GeneralRe: Finding a point on a circle Pin
max2929721-Jul-07 16:31
max2929721-Jul-07 16:31 
GeneralRe: Finding a point on a circle Pin
Paul Conrad21-Jul-07 16:53
professionalPaul Conrad21-Jul-07 16:53 
GeneralRe: Finding a point on a circle Pin
max2929721-Jul-07 17:52
max2929721-Jul-07 17:52 
GeneralRe: Finding a point on a circle Pin
Paul Conrad21-Jul-07 18:01
professionalPaul Conrad21-Jul-07 18:01 
QuestionRe: Finding a point on a circle Pin
David Crow26-Jul-07 10:53
David Crow26-Jul-07 10:53 
QuestionColor Ranges Pin
Malcolm Smart20-Jul-07 5:29
Malcolm Smart20-Jul-07 5:29 
AnswerRe: Color Ranges Pin
Luc Pattyn20-Jul-07 5:45
sitebuilderLuc Pattyn20-Jul-07 5:45 
GeneralRe: Color Ranges Pin
Malcolm Smart20-Jul-07 10:37
Malcolm Smart20-Jul-07 10:37 

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.