Skip to main content

sample_length

Function sample_length 

Source
pub fn sample_length(
    animation: &Animated<LayoutLength>,
    time: MediaTime,
) -> LayoutLength
Expand description

Samples a layout length. Validation makes every keyframe one kind (a plan’s lengths are fractions or percents); were they not, the left keyframe’s kind is kept.