Added vec_to_bezier to math.c