We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Hex rotation is inverted:
Hex
Hex::right
Hex::left
To Reproduce Steps to reproduce the behavior:
#[test] fn rotation() { let neighbors = Hex::ZERO.all_neighbors(); for elems in neighbors.windows(2) { let [prev, next] = [elems[0], elems[1]]; assert_eq!(prev.right(), next); assert_eq!(next.left(), prev); } }
Expected behavior
The logic in both Hex::left and Hex::right should be inverted
The text was updated successfully, but these errors were encountered:
nvm false alarm I got confused with the directions
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Hex
rotation is inverted:Hex::right
rotates counter-clockwise instead of clockwiseHex::left
rotates clock wise instead of counter-clockwiseTo Reproduce
Steps to reproduce the behavior:
Expected behavior
The logic in both
Hex::left
andHex::right
should be invertedThe text was updated successfully, but these errors were encountered: