File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -395,14 +395,14 @@ class _box3
395395 {
396396 coord[0 ] = vMin[0 ];
397397 Inside = false ;
398- if (IntRref (dir[0 ])) MaxT[ 0 ] = (vMin[ 0 ] - origin[ 0 ]) / dir[ 0 ]; // Calculate T distances to candidate planes
398+ if (IntRref (dir[0 ]))
399399 MaxT[0 ] = (vMin[0 ] - origin[0 ]) / dir[0 ]; // Calculate T distances to candidate planes
400400 }
401401 else if (origin[0 ] > vMax[0 ])
402402 {
403403 coord[0 ] = vMax[0 ];
404404 Inside = false ;
405- if (IntRref (dir[0 ])) MaxT[ 0 ] = (vMax[ 0 ] - origin[ 0 ]) / dir[ 0 ]; // Calculate T distances to candidate planes
405+ if (IntRref (dir[0 ]))
406406 MaxT[0 ] = (vMax[0 ] - origin[0 ]) / dir[0 ]; // Calculate T distances to candidate planes
407407 }
408408 }
@@ -411,14 +411,14 @@ class _box3
411411 {
412412 coord[1 ] = vMin[1 ];
413413 Inside = false ;
414- if (IntRref (dir[1 ])) MaxT[ 1 ] = (vMin[ 1 ] - origin[ 1 ]) / dir[ 1 ]; // Calculate T distances to candidate planes
414+ if (IntRref (dir[1 ]))
415415 MaxT[1 ] = (vMin[1 ] - origin[1 ]) / dir[1 ]; // Calculate T distances to candidate planes
416416 }
417417 else if (origin[1 ] > vMax[1 ])
418418 {
419419 coord[1 ] = vMax[1 ];
420420 Inside = false ;
421- if (IntRref (dir[1 ])) MaxT[ 1 ] = (vMax[ 1 ] - origin[ 1 ]) / dir[ 1 ]; // Calculate T distances to candidate planes
421+ if (IntRref (dir[1 ]))
422422 MaxT[1 ] = (vMax[1 ] - origin[1 ]) / dir[1 ]; // Calculate T distances to candidate planes
423423 }
424424 }
@@ -427,14 +427,14 @@ class _box3
427427 {
428428 coord[2 ] = vMin[2 ];
429429 Inside = false ;
430- if (IntRref (dir[2 ])) MaxT[ 2 ] = (vMin[ 2 ] - origin[ 2 ]) / dir[ 2 ]; // Calculate T distances to candidate planes
430+ if (IntRref (dir[2 ]))
431431 MaxT[2 ] = (vMin[2 ] - origin[2 ]) / dir[2 ]; // Calculate T distances to candidate planes
432432 }
433433 else if (origin[2 ] > vMax[2 ])
434434 {
435435 coord[2 ] = vMax[2 ];
436436 Inside = false ;
437- if (IntRref (dir[2 ])) MaxT[ 2 ] = (vMax[ 2 ] - origin[ 2 ]) / dir[ 2 ]; // Calculate T distances to candidate planes
437+ if (IntRref (dir[2 ]))
438438 MaxT[2 ] = (vMax[2 ] - origin[2 ]) / dir[2 ]; // Calculate T distances to candidate planes
439439 }
440440 }
You can’t perform that action at this time.
0 commit comments