This commit is contained in:
Simon Gardling 2022-05-18 14:24:21 -04:00
parent 5ef45c1b2b
commit 001a21f250

View File

@ -194,10 +194,13 @@ pub trait EguiHelper {
}
impl EguiHelper for Vec<Value> {
#[inline(always)]
fn to_line(self) -> Line { Line::new(Values::from_values(self)) }
#[inline(always)]
fn to_points(self) -> Points { Points::new(Values::from_values(self)) }
#[inline(always)]
fn to_tuple(self) -> Vec<(f64, f64)> { self.iter().map(|ele| (ele.x, ele.y)).collect() }
}