Hi there,(adsbygoogle = window.adsbygoogle || []).push({});

I am now trying to write program to generate smooth curve by using cubic bezier (4 points, 2 endpoints and 2 control points) through a set of points like the 'insert curve' function in Microsoft Word.

I am wondering how do the curve compute the magnitude of the control points of each point. I noticed that the gradient of the tangent to the curve at that point is the same as the gradient of the straight line formed from prior and next point, so I can compute the gradient of the control point, but what about the magnitude? I also noticed that in the Curve function, at each point, the control point prior to the point and next to the point are of the same magnitude.

At the end points, how do i get the direction and magnitude of the control point?

Please help me out! Thanks in advance!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Generating bezier curve through a set of points

Loading...

Similar Threads - Generating bezier curve | Date |
---|---|

Generating Realistic Planets | Sep 23, 2016 |

Random generated doubles: can I get a number more than once? | May 3, 2016 |

Area under a curve | Nov 19, 2015 |

CSS3 and HTML5 generator program? | Aug 22, 2015 |

Fortran : generating different output files in a loop | Jun 30, 2015 |

**Physics Forums - The Fusion of Science and Community**