[][src]Trait pathfinder::traits::MinMax

pub trait MinMax {
    fn min_max(&self) -> (Coordinate, Coordinate);
}

Enables retrieving the minimum and maximum position for the structure.

Required methods

Loading content...

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);

impl MinMax for HL[src]

impl MinMax for Node[src]

Loading content...