Why can the compiler recognized "infinity" in interval.h? #1693
-
Hi, currently I am learning raytracing by raytracing in one weekend, and I have a question in 6.8 An Interval Class: Thanks for your readingTT, hoping someone could answer my questions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
From the section Common Constants and Utility Functions, after the initial
|
Beta Was this translation helpful? Give feedback.
-
Yeah, we use a very unconventional style with our code just to make things simpler for non-C++ programmers to understand. For my own implementation, I'd definitely use a different (more standard) C++ layout. |
Beta Was this translation helpful? Give feedback.
From the section Common Constants and Utility Functions, after the initial
rtweekend.h
listing: