To represent curves in computer graphics and animations, **Cubic Bezier Curves** are frequently used. They are a special type of Bezier curve defined by four control points:
-
**P0**: The starting point
-
**P1**: The first control point, which influences the direction and 'pull' of the curve as it leaves the starting point
-
**P2**: The second control point, influencing the approach towards the endpoint
-
**P3**: The endpoint
The curve is not limited to simply connecting P0 and P3. It is influenced by P1 and P2 to shape the overall trajectory and smoothness. This makes them ideal for generating complex and beautiful curves, like letters or intricate shapes, with minimal data input. The movement along the curve is determined by a parameter, usually denoted by **t**, ranging from 0 to 1. At **t = 0**, the curve is at the starting point; at **t = 1**, it is at the endpoint.