Skip to content

Commit

Permalink
fix(vectors): GVec.copy() / get()
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 10, 2018
1 parent 07d1ccf commit ae261ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vectors/src/gvec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const opg3 = (fn: (x: number, y: number, z: number) => number, a: Vec, b:
};

export const get = (a: ReadonlyVec, num = a.length, i = 0, s = 1) =>
set(new (<any>(a.constructor))(num), a, 0, i, 1, s);
set(new (<any>(a.constructor))(num), a, num, 0, i, 1, s);

export const set = (a: Vec, b: ReadonlyVec, num = a.length, ia = 0, ib = 0, sa = 1, sb = 1) => {
while (--num >= 0) {
Expand Down

0 comments on commit ae261ab

Please sign in to comment.