Move EPSILON and MAX_DISTANCE to basics/basics.hh
This commit is contained in:
		
							parent
							
								
									abd38169b1
								
							
						
					
					
						commit
						be15d553f1
					
				
					 2 changed files with 13 additions and 12 deletions
				
			
		
							
								
								
									
										12
									
								
								src/basics.h
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								src/basics.h
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -18,18 +18,6 @@
 | 
			
		|||
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`.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,4 +13,17 @@
 | 
			
		|||
#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__ */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue