Results 1 to 2 of 2

Math Help - calculating the equation of a line given a point and direction

  1. #1
    Newbie
    Joined
    Nov 2009
    Posts
    1

    calculating the equation of a line given a point and direction

    i'm trying to code a simulation for the homicidal chauffeur's problem using maple. i don't know if this is the optimal way to approach the problem, but logically i thought i'd start by programming the chauffeur to start in the direction of the person. given the chauffeur's starting point (x,y) and his original facing direction (a direction in degrees), i could draw a line in the direction he's facing (and it's opposite direction) passing through his starting point, which would divide the cartesian plane into half planes. then depending on which half plane the person is in, the chauffeur would turn that direction (clockwise/counterclockwise). i'm having trouble coming up with the equation for the line which would divide the plane. any help is appreciated!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    skeeter's Avatar
    Joined
    Jun 2008
    From
    North Texas
    Posts
    11,695
    Thanks
    450
    Quote Originally Posted by jayceekay View Post
    i'm trying to code a simulation for the homicidal chauffeur's problem using maple. i don't know if this is the optimal way to approach the problem, but logically i thought i'd start by programming the chauffeur to start in the direction of the person. given the chauffeur's starting point (x,y) and his original facing direction (a direction in degrees), i could draw a line in the direction he's facing (and it's opposite direction) passing through his starting point, which would divide the cartesian plane into half planes. then depending on which half plane the person is in, the chauffeur would turn that direction (clockwise/counterclockwise). i'm having trouble coming up with the equation for the line which would divide the plane. any help is appreciated!
    if the direction angle, \theta , is referenced relative to the + x-axis, then the slope of the line would be m = \tan{\theta}

    if the initial position is (x_0 , y_0) , then the linear equation is

    y - y_0 = m(x - x_0)

    y = \tan{\theta}(x - x_0) + y_0
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Calculating the budget line equation
    Posted in the Business Math Forum
    Replies: 1
    Last Post: October 19th 2011, 08:03 AM
  2. Replies: 5
    Last Post: October 5th 2011, 03:01 AM
  3. Replies: 4
    Last Post: May 12th 2011, 12:18 PM
  4. Replies: 1
    Last Post: October 23rd 2008, 03:39 AM
  5. Replies: 3
    Last Post: February 20th 2008, 10:17 AM

Search Tags


/mathhelpforum @mathhelpforum