Struct toolbelt::curve::FloatCurve
source · [−]pub struct FloatCurve { /* private fields */ }
Implementations
sourceimpl FloatCurve
impl FloatCurve
pub fn new() -> Self
sourcepub fn add_point_auto(&mut self, time: f32, value: f32) -> usize
pub fn add_point_auto(&mut self, time: f32, value: f32) -> usize
returns index of new element
sourcepub fn add_point(
&mut self,
time: f32,
value: f32,
arrive_tangent: f32,
leave_tangent: f32
) -> usize
pub fn add_point(
&mut self,
time: f32,
value: f32,
arrive_tangent: f32,
leave_tangent: f32
) -> usize
returns index of new element
pub fn remove_point(&mut self, time: f32)
pub fn clear_points(&mut self)
pub fn get_value(&self, time: f32) -> f32
Trait Implementations
sourceimpl Clone for FloatCurve
impl Clone for FloatCurve
sourcefn clone(&self) -> FloatCurve
fn clone(&self) -> FloatCurve
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FloatCurve
impl Debug for FloatCurve
sourceimpl Default for FloatCurve
impl Default for FloatCurve
sourcefn default() -> FloatCurve
fn default() -> FloatCurve
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for FloatCurve
impl Send for FloatCurve
impl Sync for FloatCurve
impl Unpin for FloatCurve
impl UnwindSafe for FloatCurve
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more