Project

General

Profile

Revision 1067

Made some additions to rayHits.c

Not really useful, just for me

View differences:

rayHits.c
5 5

  
6 6
boolean rayHits(double Xr,double Yr,double Tr,double Xc,double Yc,double Rc)
7 7
{
8
	double m, b, D;
8
	double m, b, D, t;
9 9
	m = tan(Tr);
10 10
	b= -m * Xr + Yr;
11 11
	D = (abs(Yc - m * Xc - b)) / (sqrt(m * m + 1);
......
20 20
	}
21 21

  
22 22
	return false;
23
}
23
}
24

  
25

  
26
/*
27
*
28
*
29
*
30
*
31
*
32
*
33
*
34
*
35
*/
36

  
37
double a, b, c, t1, t2;
38

  
39
t1 = -(
40

  
41
((Xr - Xc)^2 + 2*cos(Tr)*(

Also available in: Unified diff