Skip to content

Commit

Permalink
perf(shader-ast-js): update vector fns
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 6, 2022
1 parent 39565cb commit 45699e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/shader-ast-js/src/env/vec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { mul2 } from "@thi.ng/vectors/mul";
import { mulN2 } from "@thi.ng/vectors/muln";
import { neg } from "@thi.ng/vectors/neg";
import { neq2 } from "@thi.ng/vectors/neq";
import { normalize } from "@thi.ng/vectors/normalize";
import { normalize2 } from "@thi.ng/vectors/normalize";
import { pow2 } from "@thi.ng/vectors/pow";
import { radians2 } from "@thi.ng/vectors/radians";
import { reflect } from "@thi.ng/vectors/reflect";
Expand Down Expand Up @@ -93,7 +93,7 @@ export const VEC2: JSBuiltinsVec = {
mul: (a, b) => mul2([], a, b),
mulnv: (a, b) => mulN2([], b, a),
mulvn: (a, b) => mulN2([], a, b),
normalize: (a) => normalize([], a),
normalize: (a) => normalize2([], a),
pow: (a, b) => pow2([], a, b),
radians: (a) => radians2([], a),
reflect: (a, b) => reflect([], a, b),
Expand Down
6 changes: 3 additions & 3 deletions packages/shader-ast-js/src/env/vec3.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { cross3 } from "@thi.ng/vectors/cross";
import { abs3 } from "@thi.ng/vectors/abs";
import { acos3 } from "@thi.ng/vectors/acos";
import { add3 } from "@thi.ng/vectors/add";
Expand All @@ -9,6 +8,7 @@ import { atan3, atan_23 } from "@thi.ng/vectors/atan";
import { ceil3 } from "@thi.ng/vectors/ceil";
import { clamp3 } from "@thi.ng/vectors/clamp";
import { cos3 } from "@thi.ng/vectors/cos";
import { cross3 } from "@thi.ng/vectors/cross";
import { degrees3 } from "@thi.ng/vectors/degrees";
import { dist } from "@thi.ng/vectors/dist";
import { div3 } from "@thi.ng/vectors/div";
Expand Down Expand Up @@ -38,7 +38,7 @@ import { mul3 } from "@thi.ng/vectors/mul";
import { mulN3 } from "@thi.ng/vectors/muln";
import { neg } from "@thi.ng/vectors/neg";
import { neq3 } from "@thi.ng/vectors/neq";
import { normalize } from "@thi.ng/vectors/normalize";
import { normalize3 } from "@thi.ng/vectors/normalize";
import { pow3 } from "@thi.ng/vectors/pow";
import { radians3 } from "@thi.ng/vectors/radians";
import { reflect } from "@thi.ng/vectors/reflect";
Expand Down Expand Up @@ -95,7 +95,7 @@ export const VEC3: JSBuiltinsVec3 = {
mul: (a, b) => mul3([], a, b),
mulnv: (a, b) => mulN3([], b, a),
mulvn: (a, b) => mulN3([], a, b),
normalize: (a) => normalize([], a),
normalize: (a) => normalize3([], a),
pow: (a, b) => pow3([], a, b),
radians: (a) => radians3([], a),
reflect: (a, b) => reflect([], a, b),
Expand Down
4 changes: 2 additions & 2 deletions packages/shader-ast-js/src/env/vec4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { mul4 } from "@thi.ng/vectors/mul";
import { mulN4 } from "@thi.ng/vectors/muln";
import { neg } from "@thi.ng/vectors/neg";
import { neq4 } from "@thi.ng/vectors/neq";
import { normalize } from "@thi.ng/vectors/normalize";
import { normalize4 } from "@thi.ng/vectors/normalize";
import { pow4 } from "@thi.ng/vectors/pow";
import { radians4 } from "@thi.ng/vectors/radians";
import { reflect } from "@thi.ng/vectors/reflect";
Expand Down Expand Up @@ -93,7 +93,7 @@ export const VEC4: JSBuiltinsVec = {
mul: (a, b) => mul4([], a, b),
mulnv: (a, b) => mulN4([], b, a),
mulvn: (a, b) => mulN4([], a, b),
normalize: (a) => normalize([], a),
normalize: (a) => normalize4([], a),
pow: (a, b) => pow4([], a, b),
radians: (a) => radians4([], a),
reflect: (a, b) => reflect([], a, b),
Expand Down

0 comments on commit 45699e1

Please sign in to comment.