@benev/math 0.0.0-2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,26 @@
1
1
 
2
2
  # @benev/math
3
+ > benevolent's game math library.
4
+
5
+ ***TODO*** actual documentation coming soon.
6
+
7
+ ### numeric primitives
8
+ - [Scalar](./s/concepts/scalar.ts)
9
+ - [Vec2](./s/concepts/vec2.ts)
10
+ - [Vec3](./s/concepts/vec3.ts)
11
+ - [Vec4](./s/concepts/vec4.ts)
12
+ - [Quat](./s/concepts/quat.ts)
13
+
14
+ ### cool utilities
15
+ - [Randy](./s/concepts/randy.ts)
16
+ - [Circular](./s/concepts/circular.ts)
17
+ - [Noise](./s/concepts/noise.ts)
18
+ - [spline](./s/concepts/spline.ts)
19
+
20
+ ### angular stuff
21
+ - [angles.ts](./s/concepts/angles.ts)
22
+ - Radians
23
+ - Arcseconds
24
+ - Turns
25
+ - Degrees
3
26
 
package/package.json CHANGED
@@ -1,29 +1,33 @@
1
1
  {
2
2
  "name": "@benev/math",
3
- "version": "0.0.0-2",
3
+ "version": "0.1.0",
4
4
  "description": "game math toolkit",
5
5
  "license": "MIT",
6
6
  "author": "Chase Moskal <chasemoskal@gmail.com>",
7
7
  "type": "module",
8
- "main": "x/index.js",
8
+ "main": "./x/index.js",
9
+ "exports": {
10
+ ".": "./x/index.js"
11
+ },
9
12
  "files": [
10
13
  "x",
11
14
  "s"
12
15
  ],
13
16
  "scripts": {
14
17
  "build": "tsc",
15
- "watch": "tsc -w",
18
+ "start": "octo 'node --watch x/tests.test.js' 'tsc -w'",
16
19
  "test": "node x/tests.test.js",
17
- "test-watch": "node --watch x/tests.test.js",
18
- "test-debug": "node inspect x/tests.test.js"
20
+ "test-debug": "node inspect x/tests.test.js",
21
+ "count": "find s -path '*/_archive' -prune -o -name '*.ts' -exec wc -l {} +"
19
22
  },
20
23
  "dependencies": {
21
24
  "simplex-noise": "^4.0.3"
22
25
  },
23
26
  "devDependencies": {
24
- "@e280/science": "^0.0.5",
27
+ "@e280/science": "^0.1.0",
28
+ "@e280/scute": "^0.0.0",
25
29
  "npm-run-all": "^4.1.5",
26
- "typescript": "^5.8.3"
30
+ "typescript": "^5.9.2"
27
31
  },
28
32
  "repository": {
29
33
  "type": "git",
package/s/index.ts CHANGED
@@ -5,7 +5,7 @@ export * from "./concepts/noise.js"
5
5
  export * from "./concepts/quat.js"
6
6
  export * from "./concepts/randy.js"
7
7
  export * from "./concepts/scalar.js"
8
- export * from "./concepts/spline.js"
8
+ export * as spline from "./concepts/spline.js"
9
9
  export * from "./concepts/vec2.js"
10
10
  export * from "./concepts/vec3.js"
11
11
  export * from "./concepts/vec4.js"
package/x/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export * from "./concepts/noise.js";
4
4
  export * from "./concepts/quat.js";
5
5
  export * from "./concepts/randy.js";
6
6
  export * from "./concepts/scalar.js";
7
- export * from "./concepts/spline.js";
7
+ export * as spline from "./concepts/spline.js";
8
8
  export * from "./concepts/vec2.js";
9
9
  export * from "./concepts/vec3.js";
10
10
  export * from "./concepts/vec4.js";
package/x/index.js CHANGED
@@ -4,7 +4,7 @@ export * from "./concepts/noise.js";
4
4
  export * from "./concepts/quat.js";
5
5
  export * from "./concepts/randy.js";
6
6
  export * from "./concepts/scalar.js";
7
- export * from "./concepts/spline.js";
7
+ export * as spline from "./concepts/spline.js";
8
8
  export * from "./concepts/vec2.js";
9
9
  export * from "./concepts/vec3.js";
10
10
  export * from "./concepts/vec4.js";
package/x/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../s/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../s/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAC9C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}