MCPcopy Create free account
hub / github.com/emilk/egui_plot / range_sorted

Method range_sorted

egui_plot/src/items/span.rs:137–141  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

135 }
136
137 fn range_sorted(&self) -> (f64, f64) {
138 let start = *self.range.start();
139 let end = *self.range.end();
140 if start <= end { (start, end) } else { (end, start) }
141 }
142
143 fn hline_points(value: f64, transform: &PlotTransform) -> Vec<Pos2> {
144 vec![

Callers 1

shapesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected