July 4, 2011 12:24 PM Subscribe
Geometry question -> Determine X and Y from distance along a straight line, or, how do I find the lengths of A and B if I know the length of C and the ratio of A to B in a right triangle?
posted by syzygy to science & nature (9 answers total)
I'm writing a little script that does some graphing operations based on parameters that are fed into it.
I have no problem finding the length of a given diagonal line defined by two sets of x and y coordinates using the pythagorean theorem. I can also get f(x) for that line.
What I've forgotten how to do is figure out the x and y coordinates based on travelling a defined number of units along that diagonal line.
Say I have a line with the slope f(x) = (x + 1.5) / 6. Let's say I have starting coordinates of x1=0 and y1=0. Let's say I need to move along my line a total of 7 units. How do I figure out x2 and y2 at that point?
Help a dummy out :-)