Project

General

Profile

Revision 1113

Added by Nico Paris about 15 years ago

Polished file. Added includes

View differences:

branches/simulator/projects/simulator/simulator/circles.c
1
#include <stdlib.h>
2
#include <math.h>
1 3

  
4

  
2 5
  float rayHits  (double Or_x,double  Or_y,double  Oc_xdouble ,double  Oc_y,double  Vr_x,double  Vr_y)
3 6
  
4 7
  /* Or_x = Origin of ray, x-coordinate
......
20 23
		return -((2*Vr_x*(Or_x - Oc_x))^2 - 4*Vr_x*(Or_x - Oc_x)^2) / (2*Vr_x));
21 24
	}
22 25
	
26
	return -1;
27
	
23 28
	\
24 29
  }
25 30

  

Also available in: Unified diff