Creating curves in unity

i want to create curves through scripts not manual like an arc if i were given following inputs

  1. starting point
  2. ending point
  3. center point

Check out this blog, there’s a tutorial on scripting Splines and Curves.