Exemple #1
0
 /**
  * @param IMap  $map
  * @param float[][] $heightsArray 2d array
  */
 public function __construct(IMap $map, ArrayAccess $heightsArray)
 {
     parent::__construct($map);
     if ($this->checkInputArraySizes($heightsArray)) {
         $this->unpreparedPoints = $heightsArray;
     }
 }
 function __construct(IMap $map, Layer $heightLayer, $waterRatio = 0)
 {
     parent::__construct($map);
     $this->heightLayer = $heightLayer;
     $this->setWaterRatio($waterRatio);
 }