Skip to main content

insert_point_key

Function insert_point_key 

Source
pub fn insert_point_key(
    animation: &mut AnimatedPoint,
    time: MediaTime,
    aspect: f64,
) -> Result<(), CurveError>
Expand description

Adds a keyframe at time to a position without changing its path or its speed along it: the timing curve is cut as by insert_eased_key and the spatial curve where that much of its arc length lies, measured in a space aspect wide per unit high.

ยงErrors

As insert_eased_key, and CurveError::OffThePath where the timing curve overshoots at time.