Refer to the bezier library developed by your library,Thank you for your open source spirit! https://github.com/wardenfeng/bezier