Skip to main content

auto_range_points

Function auto_range_points 

Source
pub fn auto_range_points(points: &[Point]) -> (Range, Range)
Expand description

Computes x and y ranges from a slice of points with 5% padding.

Returns (x_range, y_range). If points is empty, both ranges default to 0.0..1.0.