Commit 2d428c1
authored
rect.CapBound: Fix for tall and wide rects (#233)
For tall (>90 degrees) and wide (>180 degrees) lat/lng rects,
rect.CapBound returned an incorrect cap that didn't contain the full
rect. The function intends to return a polar cap in this case, but due
to an apparent typo (2 * Pi instead of Pi), returned a cap centered at
the center of the rect instead.
This fix has recently been applied to C++ and Java in google3, but has
not been exported to those github repos yet.1 parent 5906ab3 commit 2d428c1
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
398 | 408 | | |
399 | 409 | | |
400 | 410 | | |
| |||
0 commit comments