pub fn remove(&mut self, at: KeyframeIndex) {
        let i = at as usize;

        self.data.remove(i);

        // Adjusts the tangents of the neighbors keyframes left
        // Checks if next keyframe exists, now with the same index of `i` since the keyframe was removed
        if i < self.keyframes.len() {
            self.adjust_tangents(i);
        }
        // Checks if previous keyframe exists
        if i > 0 {
            self.adjust_tangents(i - 1);
        }
    }
/// Removes the keyframe at the index specified.
///
/// # Panics
///
/// Panics if `at` is out of bounds.
Removes the keyframe at the index specified.
Removes the keyframe at the index specified .
pub fn remove(&mut self, at: KeyframeIndex) {
        let i = at as usize;
        self.data.remove(i);
        // Adjusts the tangents of the neighbors keyframes left
        // Checks if next keyframe exists, now with the same index of `i` since the keyframe was removed
        if i < self.keyframes.len() {
            self.adjust_tangents(i);
        }
        // Checks if previous keyframe exists
        if i > 0 {
            self.adjust_tangents(i - 1);
        }
    }
pub fn remove ( & mut self , at : KeyframeIndex ) { let i = at as usize ; self . data . remove ( i ) ; // Adjusts the tangents of the neighbors keyframes left // Checks if next keyframe exists, now with the same index of `i` since the keyframe was removed if i < self . keyframes . len ( ) { self . adjust_tangents ( i ) ; } // Checks if previous keyframe exists if i > 0 { self . adjust_tangents ( i - 1 ) ; } }
Removes the keyframe at the index specified.
Removes the keyframe at the index specified .
&mut self
at
KeyframeIndex
&mut self
at
KeyframeIndex
panics
Panics if `at` is out of bounds.
Panics if ` at ` is out of bounds .