-
Notifications
You must be signed in to change notification settings - Fork 79
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
add cell index to the Push method of Tree #20
Conversation
tree.go
Outdated
// pushed | ||
type CellIndex struct { | ||
AxisIndex uint | ||
CellIndex uint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it on purpose that the type CellIndex contains a field with the same name as the type (CellIndex)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, changed the type CellIndex
-> SquareIndex
, and dropped the Index
of the fields. Happy to change it something else if anyone has ideas 1f35c00
Co-authored-by: Ismail Khoffi <Ismail.Khoffi@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
This PR modifies the
Tree
interface to pass along the information needed to identify which cell is being pushed.closes #19