Skip to main content

corridor_path

Function corridor_path 

Source
pub fn corridor_path(from: Vec2, to: Vec2) -> Vec<Vec2>
Expand description

Generate a corridor path between two positions. Uses L-shaped corridors (horizontal then vertical) or straight if aligned.