public function __construct($x, $y, $z, $parameter) { parent::__construct($x, $y, $z); $aim = new Image_3D_Vector($parameter['aim'][0], $parameter['aim'][1], $parameter['aim'][2]); $light = new Image_3D_Vector($this->_x, $this->_y, $this->_z); $light->sub($aim); $this->_direction = $light; $this->_direction->unify(); $this->_angle = deg2rad($parameter['angle']) / 2; $this->_float = (int) $parameter['float']; }
public function __construct($x = 0, $y = 0, $z = 0, $parameter = array()) { parent::__construct(0, 0, 0); }
public function __construct($x, $y, $z, $parameter) { parent::__construct($x, $y, $z); $this->_falloff = max(0, (double) $parameter['falloff']); $this->_distance = (double) $parameter['distance']; }