@@ -53,6 +53,9 @@ discard block |
||
| 53 | 53 | static::$rng = $fn; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param EuclidianDistance $algo |
|
| 58 | + */ |
|
| 56 | 59 | public function setDistanceAlgorithm($algo): void |
| 57 | 60 | { |
| 58 | 61 | if (is_callable($algo) && ! $algo instanceof DistanceAlgorithmInterface) { |
@@ -98,6 +101,9 @@ discard block |
||
| 98 | 101 | return $point; |
| 99 | 102 | } |
| 100 | 103 | |
| 104 | + /** |
|
| 105 | + * @param Point $point |
|
| 106 | + */ |
|
| 101 | 107 | public function attach($point, $data = null): void |
| 102 | 108 | { |
| 103 | 109 | if (!$point instanceof Point) { |