3

I've been trying to implement a Voronoi Diagram using Fortunes Algorithm. I understand how it works but I'm stuck at how to store the parabolic arcs.

I understand all this is needed for the parabola is the sweeplines' Y position and the sites position but I'm I don't understand what to do with it.

I found this equation online (via this site):

equation

What is X in this equation?

Soapy
  • 557
  • 14
  • 29

1 Answers1

1

I'd say that y = ax2 + bx + c is the equation of a parabola with vertical axis. In this case, a,b,c are given in more detail. ly is a parameter which describes the current position of the sweep line and therefore influences the shape of the parabola. So your equation describes a whole family of parabolas, with pj,x and pj,y being the coordinates of the point you actually store in your data structure.

MvG
  • 57,380
  • 22
  • 148
  • 276