My Math Forum  

Go Back   My Math Forum > High School Math Forum > Trigonometry

Trigonometry Trigonometry Math Forum


Reply
 
LinkBack Thread Tools Display Modes
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.
zavaro is offline  
 
July 27th, 2018, 03:58 PM   #2
Senior Member
 
Joined: Aug 2012

Posts: 2,041
Thanks: 582

What is a band? Is that a stretch of road between two points? Or one lane of a multi-lane road?
Maschke is online now  
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
File Type: jpg 1.jpg (99.8 KB, 6 views)
zavaro is offline  
July 28th, 2018, 01:45 AM   #4
Global Moderator
 
Joined: Dec 2006

Posts: 19,703
Thanks: 1804

By definition, a lane is for a single line of vehicles. How are sides relevant?
skipjack is online now  
July 28th, 2018, 04:16 AM   #5
Senior Member
 
Joined: Aug 2012

Posts: 2,041
Thanks: 582

Quote:
Originally Posted by zavaro View Post
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.
Maschke is online now  
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
zavaro is offline  
Reply

  My Math Forum > High School Math Forum > Trigonometry

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 03:30 AM
Looking for Someone to Point me in the right direction ROSJ61 Advanced Statistics 1 September 25th, 2013 06:01 PM
Left hand side integration with method of separation Mkkl Calculus 4 March 27th, 2013 07:41 AM
Need an Algo for 5 points movement direction piyu Applied Math 0 March 11th, 2013 10:23 PM
Direction vector from two points yaypotatoes Algebra 2 September 26th, 2008 07:29 PM





Copyright © 2018 My Math Forum. All rights reserved.