372 $v1 = $pos1->getIntermediateWithXValue($pos2, $this->minX);
373 $v2 = $pos1->getIntermediateWithXValue($pos2, $this->maxX);
374 $v3 = $pos1->getIntermediateWithYValue($pos2, $this->minY);
375 $v4 = $pos1->getIntermediateWithYValue($pos2, $this->maxY);
376 $v5 = $pos1->getIntermediateWithZValue($pos2, $this->minZ);
377 $v6 = $pos1->getIntermediateWithZValue($pos2, $this->maxZ);
406 if($v1 !== null and ($vector === null or $pos1->distanceSquared($v1) < $pos1->distanceSquared($vector))){
410 if($v2 !== null and ($vector === null or $pos1->distanceSquared($v2) < $pos1->distanceSquared($vector))){
414 if($v3 !== null and ($vector === null or $pos1->distanceSquared($v3) < $pos1->distanceSquared($vector))){
418 if($v4 !== null and ($vector === null or $pos1->distanceSquared($v4) < $pos1->distanceSquared($vector))){
422 if($v5 !== null and ($vector === null or $pos1->distanceSquared($v5) < $pos1->distanceSquared($vector))){
426 if($v6 !== null and ($vector === null or $pos1->distanceSquared($v6) < $pos1->distanceSquared($vector))){
430 if($vector === null){
438 }elseif($vector === $v2){
440 }elseif($vector === $v3){
442 }elseif($vector === $v4){
444 }elseif($vector === $v5){
446 }elseif($vector === $v6){