Realm

oa::anim::create_curve

Create a validated AnimCurve from strictly increasing keyframes. Quaternion curves normalize every keyframe value on construction. Errors Returns an error for empty or non-increasing keyframe times, non-finite or invalid values/tangents, an excessive count, or a time span that cannot be represented. Donor: oa::FnAnim::createCurve.

FnRust public API

Function Documentation

pub fn create_curve<T: AnimCurveValue>( interpolation: AnimInterpolation, keyframes: &[Keyframe<T>] ) -> Result<AnimCurve<T>>
Create a validated AnimCurve from strictly increasing keyframes. Quaternion curves normalize every keyframe value on construction. Errors Returns an error for empty or non-increasing keyframe times, non-finite or invalid values/tangents, an excessive count, or a time span that cannot be represented. Donor: oa::FnAnim::createCurve.