Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some points not on curve line #8

Closed
DustarMao opened this issue Dec 16, 2019 · 2 comments
Closed

some points not on curve line #8

DustarMao opened this issue Dec 16, 2019 · 2 comments
Labels

Comments

@DustarMao
Copy link

const y = new CubicSpline([0, .2, .5, 1], [0, .35, .5, 1]).at(.5)
console.log(y) // 0.12748344370860887 != 0.5

version: 3.0.2

@wojtus7
Copy link
Contributor

wojtus7 commented Jan 4, 2020

Hi @DustarMao
I believe I resolved this issue here #9.
Can you check out if this change fix the problem for you?

@morganherlocker
Copy link
Owner

The patch from @wojtus7 has been published. Please try upgrading and reopen this issue if the problem persists @DustarMao.

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

No branches or pull requests

3 participants