Skip to content

Commit

Permalink
feat(ootk-utils): added createVec method
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 19, 2021
1 parent 7821c47 commit 0c87700
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ootk-utils.es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ class Utils {

return 1 + (rangeRate / c) * sign(rangeRate);
}

public static createVec(start: number, stop:number, step:number): number[] {
let array = [];
for (let i = start; i <= stop; i += step) {
array.push(i);
}
return array;
}
}

export { Utils };

0 comments on commit 0c87700

Please sign in to comment.