Initialize ray before testing intersection
This commit is contained in:
		
							parent
							
								
									ee536de7dc
								
							
						
					
					
						commit
						07c70b2bc7
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -36,6 +36,7 @@ START_TEST(test_sphere_does_intersect) | |||
| 
 | ||||
|     loc = vector_init(0, -5, 0); | ||||
|     dir = vector_init(0, 1, 0); | ||||
|     ray = ray_init(loc, dir); | ||||
|     tvectors[0] = vector_init(0, -1, 0); | ||||
|     tvectors[1] = vector_init(0, 1, 0); | ||||
|     check_sphere_intersection(sphere, ray, tvectors, 2); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue