| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public static function expandFromCenterCoordinate( |
||
| 27 | Coordinate $center, |
||
| 28 | float $distance, |
||
| 29 | BearingInterface $bearing |
||
| 30 | ): Bounds { |
||
| 31 | $northWest = $bearing->calculateDestination($center, 315, $distance); |
||
| 32 | $southEast = $bearing->calculateDestination($center, 135, $distance); |
||
| 33 | |||
| 34 | return new Bounds($northWest, $southEast); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |