Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 98a06cc

Browse files
committed
Add no except to rbInt.
1 parent d97cd63 commit 98a06cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amanatidesWooAlgorithm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// but takes into account the negative zero case.
1010
// tMin and tMax are then updated to incorporate the new intersection values.
1111
// See: http://www.cs.utah.edu/~awilliam/box/box.pdf
12-
bool rayBoxIntersection(const Ray& ray, const Grid3D& grid, value_type& tMin, value_type& tMax,
13-
value_type t0, value_type t1) {
12+
[[no discard]] bool rayBoxIntersection(const Ray& ray, const Grid3D& grid, value_type& tMin, value_type& tMax,
13+
value_type t0, value_type t1) noexcept {
1414
value_type tYMin, tYMax, tZMin, tZMax;
1515
const value_type x_inv_dir = 1 / ray.direction().x();
1616
if (x_inv_dir >= 0) {

0 commit comments

Comments
 (0)