Node constructor

Node(
  1. dynamic i,
  2. dynamic x,
  3. dynamic y
)

Implementation

Node(i, x, y) {
  // vertex index in coordinates array
  this.i = i;

  // vertex coordinates
  this.x = x;
  this.y = y;

  // previous and next vertex nodes in a polygon ring
  prev = null;
  next = null;

  // z-order curve value
  z = null;

  // previous and next nodes in z-order
  prevZ = null;
  nextZ = null;

  // indicates whether this is a steiner point
  steiner = false;
}