Skip to content

Commit

Permalink
Overhauled file maps
Browse files Browse the repository at this point in the history
Refactored code
  • Loading branch information
james-pre committed Apr 18, 2024
1 parent a2dbdc5 commit c67818a
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 234 deletions.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './json.js';
export * from './misc.js';
export * from './numbers.js';
export * from './objects.js';
Expand Down
233 changes: 0 additions & 233 deletions src/json.ts

This file was deleted.

8 changes: 8 additions & 0 deletions src/numbers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ export function range(min: number, max: number): number[] {
}
return a;
}

export function toDegrees(radians: number): number {
return (radians * 180) / Math.PI;
}

export function toRadians(degrees: number): number {
return (degrees / 180) * Math.PI;
}
Loading

0 comments on commit c67818a

Please sign in to comment.