pub trait TrackValue: Copy {
// Required methods
fn linear(self, other: Self, amount: f32) -> Self;
fn cubic(
start: Self,
start_tangent: Self,
end: Self,
end_tangent: Self,
amount: f32,
duration: f32,
) -> Self;
fn is_finite(self) -> bool;
// Provided methods
fn is_valid_value(self) -> bool { ... }
fn normalized(self) -> Self { ... }
}Expand description
Operations required to evaluate a typed animation track.
Required Methods§
Sourcefn linear(self, other: Self, amount: f32) -> Self
fn linear(self, other: Self, amount: f32) -> Self
Interpolates between two values for a LINEAR sampler.
Provided Methods§
Sourcefn is_valid_value(self) -> bool
fn is_valid_value(self) -> bool
Reports whether a sampled value is valid. Quaternion values additionally reject zero length, while tangents only need to be finite.
Sourcefn normalized(self) -> Self
fn normalized(self) -> Self
Normalizes values that require a canonical sampled representation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".