Skip to content

Commit

Permalink
Fixed isfinite check
Browse files Browse the repository at this point in the history
  • Loading branch information
justnope authored and dscharrer committed Aug 22, 2024
1 parent c7a0947 commit 3833c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/Vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ template <class V>
[[nodiscard]] bool isallfinite(const V & vec) noexcept {

for(size_t i = 0; i < size_t(vec.length()); i++) {
if(arx::safe_isfinite(vec[i])) {
if(!arx::safe_isfinite(vec[i])) {
return false;
}
}
Expand Down

0 comments on commit 3833c05

Please sign in to comment.