CellLEC constructor

CellLEC(
  1. double x,
  2. double y,
  3. double hSide,
  4. double distance,
)

Implementation

CellLEC(this.x, this.y, this.hSide, this.distance) {
  this.x = x; // cell center x
  this.y = y; // cell center y
  this.hSide = hSide; // half the cell size

  /**
   * The maximum possible distance to the constraints for points in this cell
   * is the center distance plus the radius (half the diagonal length).
   */
  this.maxDist = distance + hSide * SQRT2;
}