Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
Fix edge end.
Browse files Browse the repository at this point in the history
Oops, I forgot to replace {x, y} with [x, y]. Fixes #7.
  • Loading branch information
mbostock committed May 20, 2016
1 parent 3218225 commit 66762a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Beach.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function addBeach(site) {
d = 2 * (bx * cy - by * cx),
hb = bx * bx + by * by,
hc = cx * cx + cy * cy,
vertex = {x: (cy * hb - by * hc) / d + ax, y: (bx * hc - cx * hb) / d + ay};
vertex = [(cy * hb - by * hc) / d + ax, (bx * hc - cx * hb) / d + ay];

setEdgeEnd(rArc.edge, lSite, rSite, vertex);
newArc.edge = createEdge(lSite, site, null, vertex);
Expand Down

0 comments on commit 66762a6

Please sign in to comment.