[][src]Function pathfinder::coordinate::rotate_around_axis

pub fn rotate_around_axis(axis: Coordinate, points: &mut Vec<Node>, deg: f64)

Rotates the provide Vec around the axis in place.

Examples

let mut v = vec![node!(0, 100)];
rotate_around_axis(coordinate!(), &mut v, 90.0);
assert_eq!(v.remove(0).geo, Coordinate::new(100, 0));

See also

examples/node_plot.rs