| re: finding the second coordinate
"Ashutosh Iddya" <u2515967@anu.edu.au> wrote in message
news:3f56d8ae$1@clarion.carno.net.au...[color=blue]
> HI,
>
> How do you find the other endpoint of a line given one endpoint and the
> slope of the line.
>[/color]
Well use the formula of slope
i,e slope between x1, y1 and x2, y2 = y2-y1/x2 -x1
[color=blue]
> Also how do you display the coordinate on the computer screen knowing
> that the Y axis (of the raster display) runs in the reverse direction of
> a normal graph.
>
>
> ex: given two points
> x1 = 100
> y1 = 600
>
> and given an angle
> 45 degrees ie the slope(m)of the line is 1
> and given the distance of 206 units
> how do I find x2 and y2(the other endpoint of the line)?[/color]
use the same slope formula and the also pythgoras theorem.
example :
x2, y2
x1,y1
then slope = y2 - y1/ x2 -x1
and by pythgoras therom square of 206 = square of (x2 - x1) + square
of (y2 - y1)
[color=blue]
>
> how do i display it on the computer screen.
>
> thanks,
> Ashutosh
>[/color] |