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

Closest value/time on a curve #6738

Open
LeXXik opened this issue Jun 20, 2024 · 0 comments
Open

Closest value/time on a curve #6738

LeXXik opened this issue Jun 20, 2024 · 0 comments

Comments

@LeXXik
Copy link
Contributor

LeXXik commented Jun 20, 2024

It is often needed to get a closest point on a curve to some world point. This is a bit cumbersome to do today, so this is a feature request. We need a method that takes a value and returns closest value or time.

There is a private Curve.closest(time) method, which doesn't seem to be used anywhere. Anyhow, it just returns a closest key, which is not that useful, as I know the keys already. It also takes time, which is not known at first. Maybe a candidate to deprecate.

@LeXXik LeXXik changed the title Closest value on a curve Closest value/time on a curve Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants