mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 00:45:41 +02:00
Clean up imprecise math
This commit is contained in:
@@ -83,7 +83,7 @@ void prep_drop_states(struct drop_state ds[], int maxzoom, int basezoom, double
|
||||
// basezoom - 2: 6.25 (droprate ^ 2)
|
||||
// ...
|
||||
// basezoom - n: (droprate ^ n)
|
||||
ds[i].interval = std::exp(std::log(droprate) * (basezoom - i));
|
||||
ds[i].interval = std::powf(droprate, basezoom - i);
|
||||
}
|
||||
|
||||
ds[i].error = 0;
|
||||
|
||||
Reference in New Issue
Block a user