Skip to content

Commit

Permalink
feat(geom-isec): enable TS strict compiler flags (refactor)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 4, 2019
1 parent 8d610c3 commit 4cdbd31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/geom-isec/src/ray-poly.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IntersectionResult, IntersectionType } from "@thi.ng/geom-api";
import { maddN2, ReadonlyVec } from "@thi.ng/vectors";
import { maddN2, ReadonlyVec, Vec } from "@thi.ng/vectors";
import { NONE } from "./api";
import { intersectRayLine } from "./ray-line";

Expand Down Expand Up @@ -52,7 +52,7 @@ export const intersectRayPolylineAll = (
i = pts[0];
j = pts[1];
}
const res = [];
const res: [number, Vec][] = [];
for (let k = 0; k <= n; i = j, j = pts[++k]) {
const d = intersectRayLine(rpos, dir, i, j).alpha;
if (d !== undefined) {
Expand Down

0 comments on commit 4cdbd31

Please sign in to comment.