@@ 50-62 (lines=13) @@ | ||
47 | /** |
|
48 | * @return PointSet |
|
49 | */ |
|
50 | public function produce() |
|
51 | { |
|
52 | $result = new PointSet(); |
|
53 | foreach ($this->lowerLeft->forXTimes($this->width) as $x) { |
|
54 | foreach ($this->lowerLeft->forYTimes($this->height) as $y) { |
|
55 | $point = new Point($x, $y); |
|
56 | $value = $this->getValue($point); |
|
57 | $result->attach($point, $value); |
|
58 | } |
|
59 | } |
|
60 | ||
61 | return $result; |
|
62 | } |
|
63 | } |
|
64 |
@@ 45-57 (lines=13) @@ | ||
42 | /** |
|
43 | * @return PointSet |
|
44 | */ |
|
45 | public function produce() |
|
46 | { |
|
47 | $result = new PointSet(); |
|
48 | foreach ($this->lowerLeft->forXUpTo($this->upperRight) as $x) { |
|
49 | foreach ($this->lowerLeft->forYUpTo($this->upperRight) as $y) { |
|
50 | $point = new Point($x, $y); |
|
51 | $value = $this->getValue($point); |
|
52 | $result->attach($point, $value); |
|
53 | } |
|
54 | } |
|
55 | ||
56 | return $result; |
|
57 | } |
|
58 | } |
|
59 |