Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Boolean functions are incorrectly interpolated #7525

Closed
jfirebaugh opened this issue Dec 22, 2016 · 1 comment
Closed

Boolean functions are incorrectly interpolated #7525

jfirebaugh opened this issue Dec 22, 2016 · 1 comment
Assignees
Labels

Comments

@jfirebaugh
Copy link
Contributor

When evaluated at 2, the function {stops: [[1, false], [3, true]]} should be false. But mapbox-gl-native currently evaluates it to true. This is because there's no explicit specialization for Interpolator<bool>, so the default formula a * (1.0 - t) + b * t is used.

@brunoabinader
Copy link
Member

Great finding, @jfirebaugh!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants