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

Support triangle interpolation #222

Open
tomrijnbeek opened this issue Mar 8, 2021 · 1 comment
Open

Support triangle interpolation #222

tomrijnbeek opened this issue Mar 8, 2021 · 1 comment
Labels
enhancement hacktoberfest Good issues to contribute as part of Hacktoberfest

Comments

@tomrijnbeek
Copy link
Member

🆙 Improvement proposal

#221 introduces interpolation based on 2 (in 1D) and 4 points (in 2D). We should also add interpolation methods to interpolating between 3 points (in 2D).

Context

While interpolating along a square grid is not uncommon, there are also use cases to be found for interpolating between 3 points. Specifically, interpolation between 3 points allows you to interpolate every point in a hexagonal grid. In turn, this can be used to generate noise maps based on a hexagonal grid instead of a square grid.

@tomrijnbeek
Copy link
Member Author

Note that the recommended way to support this is by using barycentric coordinates in the triangle. This feature may have to come paired with some functions that make it easy to transform between different coordinate systems inside a triangle.

@tomrijnbeek tomrijnbeek added the hacktoberfest Good issues to contribute as part of Hacktoberfest label Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement hacktoberfest Good issues to contribute as part of Hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant