Function pathfinder::group::get_parameters
source · pub fn get_parameters(group: &Group) -> (Coordinate, Coordinate)
Expand description
Returns the the largest and smallest x and y position.
Examples
use pathfinder::{group, Coordinate, Group, Node};
let mut group = Group::new_simple(0, 0);
group.push(Node::new("", Coordinate::new(100, 100)));
let (min, max) = group::get_parameters(&group);
assert_eq!(min.x, 0); // y values are identical
assert_eq!(max.x, 100);