diff --git a/src/basics.h b/src/basics.h index 0f535bc..d703514 100644 --- a/src/basics.h +++ b/src/basics.h @@ -18,6 +18,17 @@ using charles::Double; +/** + * A very small constant. If a value is between EPSILON and 0.0, it is + * considered to be zero. + */ +const Double EPSILON = 1.0e-10; + +/** + * The maximum distance a ray can travel. This is the maximum value t can be. + */ +const Double MAX_DISTANCE = 1.0e7; + /** * Determine if the value is "close enough" to zero. Takes the absolute value * and compares it to `EPSILON`. diff --git a/src/basics/basics.hh b/src/basics/basics.hh index 4fd3a25..8a556e8 100644 --- a/src/basics/basics.hh +++ b/src/basics/basics.hh @@ -13,17 +13,4 @@ #include "basics/types.hh" #include "basics/vector.hh" - -/** - * A very small constant. If a value is between EPSILON and 0.0, it is - * considered to be zero. - */ -const Double EPSILON = 1.0e-10; - -/** - * The maximum distance a ray can travel. This is the maximum value t can be. - */ -const Double MAX_DISTANCE = 1.0e7; - - #endif /* __BASICS_BASICS_HH__ */