To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.ca.rtltorontoOpen lugnet.org.ca.rtltoronto in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / Canada / rtlToronto / 17244
17243  |  17245
Subject: 
some 'puter/math help please
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Fri, 23 Mar 2007 13:20:55 GMT
Viewed: 
1616 times
  
here's the scenario as best I can describe--

x and y co-ordinates

line segment starts at (0,0), goes out to whatever--let's say (10,15)

I want to make a dot follow the line segment from (10,15) down to (0,0)

So the dot startes at (10,15), then moves 1 unit along the line segment, and so
on, until the dot reaches (0,0)

all in computer-ese

so basically, I think I'm asking for the 'computer' mathematical equation to
derive the (x,y) for point (P) along the line segment (0,0)(10,15)

My math is extremely fuzzy to begin with, and it was 20+ years ago...

Thanks for any help

Dave K



Message has 1 Reply:
  Re: some 'puter/math help please
 
(...) The points on the line take the form y = mx + b, where b is the intercept with the y-axis and m is the slope. For the problem as you describe it, b is 0 since the line crosses the y-axis at zero, and m = 1.5 or 15/10 since the slope is the (...) (18 years ago, 23-Mar-07, to lugnet.org.ca.rtltoronto)

9 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR