Skip to main content

sample_point

Function sample_point 

Source
pub fn sample_point(
    animation: &AnimatedPoint,
    time: MediaTime,
    aspect: f64,
) -> Vec2
Expand description

Samples a position that may move along spatial curves.

With both facing tangents zero the value moves in a straight line like an Animated<Vec2>. Otherwise it follows the cubic Bezier, measured in a space aspect wide per unit high, and the eased amount is the fraction of arc length travelled. Overshoot continues along the end tangent.