Skip to content

Commit

Permalink
refactor(shader-ast-js): update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 29, 2021
1 parent 53e41e3 commit 70476b4
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 57 deletions.
10 changes: 2 additions & 8 deletions packages/shader-ast-js/src/env.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import {
mat22n,
mat22v,
mat33n,
mat33v,
mat44n,
mat44v,
} from "@thi.ng/matrices";
import { mat22n, mat33n, mat44n } from "@thi.ng/matrices/matn";
import { mat22v, mat33v, mat44v } from "@thi.ng/matrices/matv";
import { ZERO3, ZERO4 } from "@thi.ng/vectors/api";
import { fromBVec2, fromBVec3, fromBVec4 } from "@thi.ng/vectors/convert";
import { setVN3, setVN4 } from "@thi.ng/vectors/setvn";
Expand Down
15 changes: 5 additions & 10 deletions packages/shader-ast-js/src/env/float.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import {
clamp,
deg,
fract,
mix,
mod,
rad,
smoothStep,
step,
} from "@thi.ng/math";
import { deg, rad } from "@thi.ng/math/angle";
import { clamp } from "@thi.ng/math/interval";
import { mix } from "@thi.ng/math/mix";
import { fract, mod } from "@thi.ng/math/prec";
import { smoothStep, step } from "@thi.ng/math/step";
import type { JSBuiltinsFloat } from "../api";

export const FLOAT: JSBuiltinsFloat<number> = {
Expand Down
24 changes: 11 additions & 13 deletions packages/shader-ast-js/src/env/mat2.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import {
add22,
addN22,
div22,
divN22,
mul22,
mulM22,
mulN22,
mulV22,
mulVM22,
sub22,
subN22,
} from "@thi.ng/matrices";
import { add22 } from "@thi.ng/matrices/add";
import { addN22 } from "@thi.ng/matrices/addn";
import { div22 } from "@thi.ng/matrices/div";
import { divN22 } from "@thi.ng/matrices/divn";
import { mul22 } from "@thi.ng/matrices/mul";
import { mulM22 } from "@thi.ng/matrices/mulm";
import { mulN22 } from "@thi.ng/matrices/muln";
import { mulV22 } from "@thi.ng/matrices/mulv";
import { mulVM22 } from "@thi.ng/matrices/mulvm";
import { sub22 } from "@thi.ng/matrices/sub";
import { subN22 } from "@thi.ng/matrices/subn";
import { neg } from "@thi.ng/vectors/neg";
import type { JSBuiltinsMat } from "../api";

Expand Down
24 changes: 11 additions & 13 deletions packages/shader-ast-js/src/env/mat3.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import {
add33,
addN33,
div33,
divN33,
mul33,
mulM33,
mulN33,
mulV33,
mulVM33,
sub33,
subN33,
} from "@thi.ng/matrices";
import { add33 } from "@thi.ng/matrices/add";
import { addN33 } from "@thi.ng/matrices/addn";
import { div33 } from "@thi.ng/matrices/div";
import { divN33 } from "@thi.ng/matrices/divn";
import { mul33 } from "@thi.ng/matrices/mul";
import { mulM33 } from "@thi.ng/matrices/mulm";
import { mulN33 } from "@thi.ng/matrices/muln";
import { mulV33 } from "@thi.ng/matrices/mulv";
import { mulVM33 } from "@thi.ng/matrices/mulvm";
import { sub33 } from "@thi.ng/matrices/sub";
import { subN33 } from "@thi.ng/matrices/subn";
import { neg } from "@thi.ng/vectors/neg";
import { setS3 } from "@thi.ng/vectors/sets";
import { vecOf } from "@thi.ng/vectors/vec-of";
Expand Down
24 changes: 11 additions & 13 deletions packages/shader-ast-js/src/env/mat4.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import {
add44,
addN44,
div44,
divN44,
mul44,
mulM44,
mulN44,
mulV44,
mulVM44,
sub44,
subN44,
} from "@thi.ng/matrices";
import { add44 } from "@thi.ng/matrices/add";
import { addN44 } from "@thi.ng/matrices/addn";
import { div44 } from "@thi.ng/matrices/div";
import { divN44 } from "@thi.ng/matrices/divn";
import { mul44 } from "@thi.ng/matrices/mul";
import { mulM44 } from "@thi.ng/matrices/mulm";
import { mulN44 } from "@thi.ng/matrices/muln";
import { mulV44 } from "@thi.ng/matrices/mulv";
import { mulVM44 } from "@thi.ng/matrices/mulvm";
import { sub44 } from "@thi.ng/matrices/sub";
import { subN44 } from "@thi.ng/matrices/subn";
import { neg } from "@thi.ng/vectors/neg";
import { setS4 } from "@thi.ng/vectors/sets";
import { vecOf } from "@thi.ng/vectors/vec-of";
Expand Down

0 comments on commit 70476b4

Please sign in to comment.