1 | <?php |
||
16 | class PointSet extends \SplObjectStorage |
||
17 | { |
||
18 | /** |
||
19 | * @param PointSet $other |
||
20 | * |
||
21 | * @return PointSet |
||
22 | */ |
||
23 | public static function duplicate(PointSet $other) |
||
30 | |||
31 | /** |
||
32 | * @param Point[] $points |
||
33 | */ |
||
34 | public function __construct(array $points = []) |
||
44 | |||
45 | /** |
||
46 | * @param PointSet $other |
||
47 | * |
||
48 | * @return PointSet |
||
49 | */ |
||
50 | public function intersect(PointSet $other) |
||
58 | |||
59 | /** |
||
60 | * @param PointSet $other |
||
61 | * |
||
62 | * @return PointSet |
||
63 | */ |
||
64 | public function union(PointSet $other) |
||
72 | |||
73 | /** |
||
74 | * @param PointSet $other |
||
75 | * |
||
76 | * @return PointSet |
||
77 | */ |
||
78 | public function diff(PointSet $other) |
||
86 | |||
87 | public function getHash($object) |
||
95 | |||
96 | /** |
||
97 | * @param callable $callback |
||
98 | * |
||
99 | * @return PointSet |
||
100 | */ |
||
101 | public function map($callback) |
||
113 | |||
114 | /** |
||
115 | * @param callable $callback |
||
116 | * @param mixed $initial |
||
117 | * |
||
118 | * @return mixed |
||
119 | */ |
||
120 | public function reduce($callback, $initial) |
||
128 | |||
129 | /** |
||
130 | * @return Line |
||
131 | */ |
||
132 | public function smallestRectangularEnvelope() |
||
153 | } |
||
154 |