smooth curve using bezierpath

I would like to merge your smooth curve into my own fork

Not sure if this is the way to do it