Skip to content

Commit

Permalink
refactor(geom-clip-poly): minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Mar 21, 2024
1 parent a45502b commit 1a38846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/geom-clip-poly/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export const sutherlandHodgeman = (
if (corner2(ca, cb, p, eps) === sign) {
clipped.push(
cqsign !== sign
? <Vec>intersectLineLine(ca, cb, p, q).isec
? intersectLineLine(ca, cb, p, q).isec![0]
: q
);
} else if (cqsign === sign) {
clipped.push(<Vec>intersectLineLine(ca, cb, p, q).isec, q);
clipped.push(intersectLineLine(ca, cb, p, q).isec![0], q);
}
}
if (clipped.length < 2) {
Expand Down

0 comments on commit 1a38846

Please sign in to comment.