UNPKG
ts-raycasting
Version:
latest (0.0.14)
0.0.14
0.0.12
Raycasting in typescript
github.com/dderevjanik/ts-raycasting
dderevjanik/ts-raycasting
ts-raycasting
/
test
/
helpers
/
configs.ts
13 lines
(11 loc)
•
273 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
const
MAX_INTERSECTIONS
=
128
;
export
const
testUntilHit
= (
row, column, cell, dist, i
) => {
if
(i >
MAX_INTERSECTIONS
) {
console
.
log
(
'over'
);
return
false
; }
if
(cell ===
1
) {
return
false
; }
return
true
; };