Function anim::bezier_utils::create_linear_bezier_handles

Function Documentation

void anim::bezier_utils::create_linear_bezier_handles(const Point &p0, const Point &p3, Point &out_p1, Point &out_p2)

Produces handles that make the segment between p0 and p3 appear linear.

Parameters:
  • p0 – Start anchor point.

  • p3 – End anchor point.

  • out_p1 – Receives the out-handle for p0 (one third along the segment).

  • out_p2 – Receives the in-handle for p3 (two thirds along the segment).