For each intersection, connects it to its k nearest neighbors - Street generator.
More...
#include <StreetGenerator.h>
For each intersection, connects it to its k nearest neighbors - Street generator.
◆ StreetGenerator()
StreetGenerator::StreetGenerator |
( |
size_t |
k, |
|
|
int |
defaultSpeed |
|
) |
| |
- Parameters
-
k | Number of neighbors. |
defaultSpeed | Speed for every new Road. |
◆ generate()
Append new bidirectional roads into the graph (no duplicates).
Implements RoadGenerator.
The documentation for this class was generated from the following files: