Skip to content

Commit

Permalink
refactor(geom-resample): minor internal updates
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Mar 21, 2024
1 parent 1a38846 commit 843788f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/geom-resample/src/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const sampleUniformX = (
for (let x = x1; x <= x2; x += step) {
res.push(
<ReadonlyVec>(
intersectRayPolyline([x, startY], [0, 1], pts, false).isec!
intersectRayPolyline([x, startY], [0, 1], pts, false).isec![0]
)
);
}
Expand Down Expand Up @@ -73,7 +73,7 @@ export const sampleUniformY = (
for (let y = y1; y <= y2; y += step) {
res.push(
<ReadonlyVec>(
intersectRayPolyline([startX, y], [1, 0], pts, false).isec!
intersectRayPolyline([startX, y], [1, 0], pts, false).isec![0]
)
);
}
Expand Down

0 comments on commit 843788f

Please sign in to comment.