Skip to content

Commit

Permalink
refactor(geom-poly-utils): update deps, imports, use new Fn types
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 5, 2020
1 parent d58a562 commit 4eb9248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/geom-poly-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@microsoft/api-extractor": "^7.9.11",
"@thi.ng/api": "^6.12.3",
"@types/mocha": "^8.0.3",
"@types/node": "^14.6.1",
"mocha": "^8.1.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/geom-poly-utils/src/equilateral.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { FnU2 } from "@thi.ng/api";
import { THIRD_PI } from "@thi.ng/math";
import {
maddN2,
Expand All @@ -8,7 +9,7 @@ import {
Vec,
} from "@thi.ng/vectors";

export const equilateralTriangle2 = (a: Vec, b: Vec) => {
export const equilateralTriangle2: FnU2<Vec, Vec[]> = (a, b) => {
const dir = sub2([], b, a);
const c = normalize(
null,
Expand Down

0 comments on commit 4eb9248

Please sign in to comment.