Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kdtree get_feuille(kdtree arbre,color* colorI){
- int couleur = colorI[arbre->axeD];
- int mediane = arbre->table->colorSequence[arbre->axeD + arbre->table->dim*arbre->planC];
- if(arbre->left_son == NULL) {
- return(arbre);
- }
- else {
- if( mediane <= couleur ){
- return(get_feuille(arbre->right_son,colorI));
- }
- else{
- return(get_feuille(arbre->left_son,colorI));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement