Skip to content
Snippets Groups Projects
Commit 92cfb6eb authored by poulpe's avatar poulpe
Browse files

[Update] Add comment

parent 9d338fc1
No related branches found
No related tags found
No related merge requests found
...@@ -132,9 +132,9 @@ node *quadtree_position(int32_t li, int32_t col, node *tree, int32_t depth) ...@@ -132,9 +132,9 @@ node *quadtree_position(int32_t li, int32_t col, node *tree, int32_t depth)
node *crt = tree; node *crt = tree;
do do
{ {
int32_t ligne = (li >> depth) & 1; int32_t line = (li >> depth) & 1; // shift bit for select only the bit of stage & 1 check first bit
int32_t colonne = (col >> depth) & 1; int32_t column = (col >> depth) & 1; // shift bit for select only the bit of stage & 1 check first bit
int32_t index = (ligne << 1) | colonne; int32_t index = (line << 1) | column;
crt = crt->child[index]; crt = crt->child[index];
depth--; depth--;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment