Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_animation/src/util.rs
6595 views
1
/// Steps between two different discrete values of any type.
2
/// Returns `a` if `t < 1.0`, otherwise returns `b`.
3
#[inline]
4
pub(crate) fn step_unclamped<T>(a: T, b: T, t: f32) -> T {
5
if t < 1.0 {
6
a
7
} else {
8
b
9
}
10
}
11
12