HTML and CSS Reference
In-Depth Information
Code
Explanation
t=0.0; }
else if (t>1.0) {
t = 1.0;
}
dx = (sx+t*(fx-sx))-cx;
dy = (sy +t*(fy-sy))-cy;
rt = (dx*dx) +(dy*dy);
if (rt<(rad*rad)) {
return true; }
else {
return false;}
}
function getwalls() {
var swalls;
var sw;
var i;
var sx;
var sy;
var fx;
var fy;
var curwall;
Search WWH ::




Custom Search