Skip to content

Commit

Permalink
Fix formatting using clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
sebisteiner committed Oct 12, 2022
1 parent 3c6a2d0 commit 29f6310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/h3lib/lib/bbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ H3Error bboxHexEstimate(const BBox *bbox, int res, int64_t *out) {
double ratio = length / width;
// Derived constant based on: https://math.stackexchange.com/a/1921940
// Clamped to 3 as higher values tend to rapidly drag the estimate to zero.
double a = d * d / fmin(3.0, ratio);
double a = d * d / fmin(3.0, ratio);

// Divide the two to get an estimate of the number of hexagons needed
double estimateDouble = ceil(a / pentagonAreaKm2);
Expand Down

0 comments on commit 29f6310

Please sign in to comment.