procedural_city_generation.roadmap.growth_rules package

Submodules

procedural_city_generation.roadmap.growth_rules.grid module

procedural_city_generation.roadmap.growth_rules.grid.grid(vertex, b)

procedural_city_generation.roadmap.growth_rules.minor_road module

procedural_city_generation.roadmap.growth_rules.minor_road.minor_road(vertex, b)

procedural_city_generation.roadmap.growth_rules.organic module

procedural_city_generation.roadmap.growth_rules.organic.organic(vertex, b)

procedural_city_generation.roadmap.growth_rules.radial module

procedural_city_generation.roadmap.growth_rules.radial.case_differentiation(v1, v2)

Finds out if the angle between two vectors is closest to 0, 90, 180, 270 degrees. Returns the angle in degrees to which the first vector has to be rotated in order to be either parrallel or perpendicular to the second vector.

v1 : np.ndarray(2, ) v2 : np.ndarray(2, )

float

procedural_city_generation.roadmap.growth_rules.radial.radial(center, vertex, b)

procedural_city_generation.roadmap.growth_rules.seed module

procedural_city_generation.roadmap.growth_rules.seed.seed(vertex, b)

Module contents