Function pathfinder::map::network::add_children
source · Expand description
Adds the number of children supplied, positioned randomly to a group.
Examples
use pathfinder::{group, map::network, Group};
let mut groups = Group::from_list(&[(0, 0), (100, 100)]);
for group in groups.iter_mut() {
network::add_children(group, 50);
}
assert_eq!(group::count(&groups), 100);