
Trigonometry Trigonometry Math Forum 
 LinkBack  Thread Tools  Display Modes 
July 27th, 2018, 04:16 PM  #1 
Newbie Joined: Jul 2018 From: Romania Posts: 3 Thanks: 0  Generate a point to the left side of the direction between two points
Hi guys, I am trying to make a Traffic Simulator for my bachelor thesis. But, I have a problem, I don't know how to keep the correct band of road for every car, all my cars are on the same band of road. I am thinking about the direction between two points and the car will be at the right side of the direction. But I have no idea how to do this.... Thank you! Last edited by skipjack; July 28th, 2018 at 01:30 AM. 
July 27th, 2018, 04:58 PM  #2 
Senior Member Joined: Aug 2012 Posts: 2,157 Thanks: 631 
What is a band? Is that a stretch of road between two points? Or one lane of a multilane road?

July 28th, 2018, 01:28 AM  #3 
Newbie Joined: Jul 2018 From: Romania Posts: 3 Thanks: 0  re
Sorry, not the band. The correct side of lanes. 
July 28th, 2018, 02:45 AM  #4 
Global Moderator Joined: Dec 2006 Posts: 20,293 Thanks: 1968 
By definition, a lane is for a single line of vehicles. How are sides relevant?

July 28th, 2018, 05:16 AM  #5 
Senior Member Joined: Aug 2012 Posts: 2,157 Thanks: 631  
July 28th, 2018, 05:55 AM  #6 
Newbie Joined: Jul 2018 From: Romania Posts: 3 Thanks: 0 
Oh, my mistake, I am very tired. The road has two lanes, left and right. I can create a road with two points, like this: ab The line which is created by the points a and b is midle of the road. Now, I have the point c which is the car în my program. Initial the point is on the line acb If direction of the car (point c) is a>b I whant to put the car in the right lane, and if the direction of the car is b>a I want to put the car in the left lane. Like this: For: a>b  >>>.c For: a<b .c<<< a<b  I know how to put the car on the correct lane, but I don't know when to do it I was thinking about the direction, and to put every time a point to right side of the direction of two points, so my car will be all time on the correct lane of road 

Tags 
direction, generate, left, point, points, side 
Thread Tools  
Display Modes  

Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Generate points on spiral on same distance from previous poi  dominum018  Algebra  0  October 1st, 2013 04:30 AM 
Looking for Someone to Point me in the right direction  ROSJ61  Advanced Statistics  1  September 25th, 2013 07:01 PM 
Left hand side integration with method of separation  Mkkl  Calculus  4  March 27th, 2013 08:41 AM 
Need an Algo for 5 points movement direction  piyu  Applied Math  0  March 11th, 2013 11:23 PM 
Direction vector from two points  yaypotatoes  Algebra  2  September 26th, 2008 08:29 PM 