Click here to Skip to main content
15,889,216 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Line through X Pin
Luc Pattyn14-May-07 13:30
sitebuilderLuc Pattyn14-May-07 13:30 
GeneralRe: Line through X Pin
crash89314-May-07 17:00
crash89314-May-07 17:00 
GeneralRe: Line through X Pin
Luc Pattyn14-May-07 20:23
sitebuilderLuc Pattyn14-May-07 20:23 
GeneralRe: Line through X Pin
crash89315-May-07 6:00
crash89315-May-07 6:00 
GeneralRe: Line through X Pin
Luc Pattyn15-May-07 6:59
sitebuilderLuc Pattyn15-May-07 6:59 
GeneralRe: Line through X Pin
crash89315-May-07 7:24
crash89315-May-07 7:24 
Generalnew attempt Pin
crash89315-May-07 12:01
crash89315-May-07 12:01 
GeneralRe: new attempt2 Pin
crash89315-May-07 12:42
crash89315-May-07 12:42 
Random random = new Random();
Point pnt1 = new Point(random.Next(10000) ,random.Next(10000));
Point pnt2 = new Point(Convert.ToInt16(textBox7.Text),0);
Point pnt3 = new Point(1,1);

int slope;


slope = (pnt2.Y - pnt1.Y) / (pnt2.X - pnt1.X);

int t = random.Next();
pnt3.X = t * slope + pnt2.X;
pnt3.Y = t * slope + pnt2.Y;

AnswerRe: Line through X Pin
Michael Sadlon22-May-07 12:01
Michael Sadlon22-May-07 12:01 
GeneralRe: Line through X Pin
crash89322-May-07 16:48
crash89322-May-07 16:48 
GeneralRe: Line through X Pin
crash89322-May-07 16:51
crash89322-May-07 16:51 
GeneralRe: Line through X Pin
cp987622-May-07 17:37
cp987622-May-07 17:37 
GeneralRe: Line through X Pin
crash89322-May-07 19:57
crash89322-May-07 19:57 
GeneralRe: Line through X Pin
cp987622-May-07 20:15
cp987622-May-07 20:15 
GeneralRe: Line through X Pin
crash89329-May-07 15:33
crash89329-May-07 15:33 
Question[Message Deleted] Pin
#12310-May-07 20:05
#12310-May-07 20:05 
JokeRe: Integer Geometry Pin
CPallini11-May-07 4:18
mveCPallini11-May-07 4:18 
GeneralRe: Integer Geometry Pin
CPallini11-May-07 9:40
mveCPallini11-May-07 9:40 
GeneralRe: Integer Geometry Pin
CPallini31-May-07 20:31
mveCPallini31-May-07 20:31 
GeneralRe: Integer Geometry Pin
CPallini31-May-07 20:57
mveCPallini31-May-07 20:57 
AnswerRe: Integer Geometry Pin
stevepqr17-May-07 3:13
stevepqr17-May-07 3:13 
GeneralRe: Integer Geometry Pin
stevepqr17-May-07 7:30
stevepqr17-May-07 7:30 
General[Message Deleted] Pin
#12317-May-07 8:01
#12317-May-07 8:01 
GeneralRe: Integer Geometry Pin
stevepqr17-May-07 9:21
stevepqr17-May-07 9:21 
General[Message Deleted] Pin
#12317-May-07 10:35
#12317-May-07 10:35 

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.