Struct egui::widgets::plot::Curve [−][src]
pub struct Curve { /* fields omitted */ }
A series of values forming a path.
Implementations
impl Curve
[src]
impl Curve
[src]pub fn from_values(values: Vec<Value>) -> Self
[src]
pub fn from_values_iter(iter: impl Iterator<Item = Value>) -> Self
[src]
pub fn from_explicit_callback(
function: impl Fn(f64) -> f64 + 'static,
x_range: RangeInclusive<f64>,
points: usize
) -> Self
[src]
pub fn from_explicit_callback(
function: impl Fn(f64) -> f64 + 'static,
x_range: RangeInclusive<f64>,
points: usize
) -> Self
[src]Draw a curve based on a function y=f(x)
, a range (which can be infinite) for x and the number of points.
pub fn from_parametric_callback(
function: impl Fn(f64) -> (f64, f64),
t_range: RangeInclusive<f64>,
points: usize
) -> Self
[src]
pub fn from_parametric_callback(
function: impl Fn(f64) -> (f64, f64),
t_range: RangeInclusive<f64>,
points: usize
) -> Self
[src]Draw a curve based on a function (x,y)=f(t)
, a range for t and the number of points.
pub fn from_ys_f32(ys: &[f32]) -> Self
[src]
pub fn from_ys_f32(ys: &[f32]) -> Self
[src]From a series of y-values. The x-values will be the indices of these values