Function anim::ensure_handle_time_boundary
Function Documentation
-
void anim::ensure_handle_time_boundary(const Point &keyframe_pos, Point &handle_to_adjust, const Point &boundary_pos, bool is_in_handle)
Adjusts a handle so its time does not cross a boundary keyframe.
If the handle violates the boundary it is scaled back along the line from the keyframe to the handle so it lands exactly on the boundary time. Vertical handles (zero time delta) are left unchanged.
- Parameters:
keyframe_pos – The owning keyframe’s position.
handle_to_adjust – The handle to constrain (modified in place).
boundary_pos – The neighbouring keyframe’s position acting as the limit.
is_in_handle – True for an in-handle (limited below), false for an out-handle (limited above).