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

Boolean functions are incorrectly interpolated #7525

Closed

Description

@jfirebaugh

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.

Activity

  1. self-assigned this
    on Dec 22, 2016
  2. brunoabinader commented on Jan 1, 2017

    @brunoabinader
    Contributor

    Great finding, @jfirebaugh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions