Is it good practice to check if some floating point value is exactly zero? No, because of precision errors. You should use some epsilon (which is very small) value and do something like this:
The material you are showing is abundant on the web, but there aren't many good videos about the subject. So thanks for taking the time to post the videos. Keep up the good work
Is it good practice to check if some floating point value is exactly zero? No, because of precision errors. You should use some epsilon (which is very small) value and do something like this:
std::abs(x - y) <= epsilon * std::abs(x);
jpknie 1 month ago
The material you are showing is abundant on the web, but there aren't many good videos about the subject. So thanks for taking the time to post the videos. Keep up the good work
rne1223 1 month ago
ray tracing or tray racing
Lt0Th3M 2 months ago
Nice
MinDControlDx 3 months ago
Thanks a lot.
mohdadyg 4 months ago