Skip to main content

sample_blend_space_2d_zero_heap

Function sample_blend_space_2d_zero_heap 

pub fn sample_blend_space_2d_zero_heap<const MAX_POINTS: usize, const MAX_TRIS: usize>(
    space: &BlendSpace2D<MAX_POINTS, MAX_TRIS>,
    query: [f32; 2],
    clip_poses: &[&[Motor]],
    out_pose: &mut [Motor],
) -> Result<(BlendSample2D, usize), SkeletalError>
Expand description

Samples a BlendSpace2D at query and blends the 3 enclosing triangle clip poses per joint using barycentric Motor::sclerp with zero heap allocation (HotZeroHeap).