We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
.circular_tuple_windows() will produce the same amount of elements as the upstream iterator, so I believe the implementation should be pretty simple.
.circular_tuple_windows()
Speaking about the practical example, I want to convert a vector of 2D points to pairs of normalized vectors.
let vecs = shape .into_iter() .circular_tuple_windows::<(_, _)>() .map(|((x1, y1), (x2, y2)): (Point, Point)| (x2 - x1, y2 - y1) as Point) .circular_tuple_windows(); // trait `ExactSizeIterator` is not satisfied
The text was updated successfully, but these errors were encountered:
@Philippe-Cholet what an excellent work, thank you so much! ❤️
Sorry, something went wrong.
@xamgore You are welcome. Thanks for pointing that out.
Successfully merging a pull request may close this issue.
.circular_tuple_windows()
will produce the same amount of elements as the upstream iterator, so I believe the implementation should be pretty simple.Speaking about the practical example, I want to convert a vector of 2D points to pairs of normalized vectors.
The text was updated successfully, but these errors were encountered: