finding the second coordinate

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ashutosh Iddya

    finding the second coordinate

    HI,

    How do you find the other endpoint of a line given one endpoint and the
    slope of the line.

    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)?

    how do i display it on the computer screen.

    thanks,
    Ashutosh

  • Vijay Singh

    #2
    Re: finding the second coordinate


    "Ashutosh Iddya" <u2515967@anu.e du.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]


    Comment

    • Phil...

      #3
      Re: finding the second coordinate

      you can also use the angle to represent the slope if you like trig

      slope = tan(theta) = 1 so theta = arctan(1) = 45 degrees
      then x2 = x1 + 206*cos(theta) = 100 + 206*0.7071 = 245.6626
      and y2 = y1 + 206*sin(theta) = 600 + 206*0.7071 = 745.6626

      phil...

      "Vijay Singh" <vij_singh@hotm ail.com> wrote in message news:C%M5b.2395 $JK4.1704@news-binary.blueyond er.co.uk...[color=blue]
      >
      > "Ashutosh Iddya" <u2515967@anu.e du.au> wrote in message
      > news:3f56d8ae$1 @clarion.carno. net.au...[color=green]
      > > 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=green]
      > > 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=green]
      > >
      > > how do i display it on the computer screen.
      > >
      > > thanks,
      > > Ashutosh
      > >[/color]
      >
      >[/color]

      Comment

      Working...