My Math Forum Generate a point to the left side of the direction between two points

 Trigonometry Trigonometry Math Forum

 July 27th, 2018, 03: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 12:30 AM.
 July 27th, 2018, 03:58 PM #2 Senior Member   Joined: Aug 2012 Posts: 2,355 Thanks: 737 What is a band? Is that a stretch of road between two points? Or one lane of a multi-lane road?
July 28th, 2018, 12:28 AM   #3
Newbie

Joined: Jul 2018
From: Romania

Posts: 3
Thanks: 0

re

Sorry, not the band.
The correct side of lanes.
Attached Images
 1.jpg (99.8 KB, 6 views)

 July 28th, 2018, 01:45 AM #4 Global Moderator   Joined: Dec 2006 Posts: 20,919 Thanks: 2203 By definition, a lane is for a single line of vehicles. How are sides relevant?
July 28th, 2018, 04:16 AM   #5
Senior Member

Joined: Aug 2012

Posts: 2,355
Thanks: 737

Quote:
 Originally Posted by zavaro Sorry, not the band. The correct side of lanes.
Sides of lanes? So let's say there's a two-lane road, one lane in each direction. Is a lane a band?

You know the very first step in modeling is to have a perfectly clear description of what you're trying to model.

 July 28th, 2018, 04: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: a-------------------------------b 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 a-----------------c----------------b 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 Linear Mode

 Similar Threads Thread Thread Starter Forum Replies Last Post dominum018 Algebra 0 October 1st, 2013 03:30 AM ROSJ61 Advanced Statistics 1 September 25th, 2013 06:01 PM Mkkl Calculus 4 March 27th, 2013 07:41 AM piyu Applied Math 0 March 11th, 2013 10:23 PM yaypotatoes Algebra 2 September 26th, 2008 07:29 PM

 Contact - Home - Forums - Cryptocurrency Forum - Top