pub struct Curve {
pub points: Vec<(f32, f32)>,
pub interpolation: Interpolation,
pub resolution: usize,
}
Fields§
§points: Vec<(f32, f32)>
Key points for building a curve
interpolation: Interpolation
The way middle points is interpolated during building a curve Only Linear is implemented now
resolution: usize
Interpolation steps used to build the curve from the key points
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Curve
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnwindSafe for Curve
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more