[−][src]Trait pathfinder::traits::MinMax
Enables retrieving the minimum and maximum position for the structure.
Required methods
fn min_max(&self) -> (Coordinate, Coordinate)
Implementors
impl MinMax for Group
[src]
fn min_max(&self) -> (Coordinate, Coordinate)
[src]
Returns the the largest and smallest x and y position found in the group.
Examples
let mut group = Group::new_simple(0, 0); group.push(node!(100, 100)); let (min, max) = group.min_max(); assert_eq!(min.x, 0); assert_eq!(max.x, 104);