compute bezier terms