Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions math/mathcore/src/TKDTree.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -793,13 +793,13 @@ void TKDTree<Index, Value>::UpdateRange(Index inode, Value* point, Value range,
}
return;
}
if (point[fAxis[inode]]<=fValue[inode]){
if (point[fAxis[inode]]<fValue[inode]){
//first examine the node that contains the point
UpdateRange(GetLeft(inode),point, range, res);
UpdateRange(GetRight(inode),point, range, res);
} else {
UpdateRange(GetLeft(inode),point, range, res);
UpdateRange(GetRight(inode),point, range, res);
UpdateRange(GetLeft(inode),point, range, res);
}
}

Expand Down
Loading