Function anim::apply_aligned_handles

Function Documentation

void anim::apply_aligned_handles(Keyframe &keyframe, const Keyframe *prev_keyframe_ptr, const Keyframe *next_keyframe_ptr, GrabbedHandle grabbed_handle = GrabbedHandle::None)

Computes aligned handles (the HandleMode::Aligned family) for a keyframe.

Keeps the in- and out-handles collinear through the keyframe. The keyframe’s HandleMode selects the exact behavior (strict symmetry vs. independently clamped magnitudes), and grabbed_handle indicates which handle drives the alignment.

Parameters:
  • keyframe – The keyframe to update (modified in place).

  • prev_keyframe_ptr – Previous keyframe, or nullptr if this is the first.

  • next_keyframe_ptr – Next keyframe, or nullptr if this is the last.

  • grabbed_handle – Which handle is the source of the alignment.