-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
executable file
·154 lines (140 loc) · 3.54 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// points
import distance from "./core/points/distance";
import collision from "./core/points/collision";
import middle from "./core/points/middle";
import pointWithoutCollision from "./core/points/pointWithoutCollision";
import collisionInArray from "./core/points/collisionInArray";
import angle from "./core/points/angle";
import randomPoints from "./core/points/randomPoints";
import area from "./core/points/area";
import randomPointInDistance from "./core/points/randomPointInDistance";
import nearest from "./core/points/nearest";
import perimeter from "./core/points/perimeter";
import positionInCircle from "./core/points/positionInCircle";
import possibleConnections from "./core/points/possibleConnections";
import circleArea from "./core/points/circleArea";
import center from "./core/points/center";
import farest from "./core/points/farest";
import randomPoint from "./core/points/randomPoint";
import move from "./core/points/move";
import scale from "./core/points/scale";
import inLine from "./core/points/inLine";
import cross from "./core/points/cross";
import rotate from "./core/points/rotate";
import sort from "./core/points/sort";
import square from "./core/points/square";
import rectangle from "./core/points/rectangle";
import triangle from "./core/points/triangle";
import pentagon from "./core/points/pentagon";
// math
import inRange from "./core/math/inRange";
import roundToPrecision from "./core/math/roundToPrecision";
import degreesToRadians from "./core/math/degreesToRadians";
import radiansToDegrees from "./core/math/radiansToDegrees";
import average from "./core/math/average";
// randomization
import uniqueId from "./core/randomization/uniqueId";
import randomBoolean from "./core/randomization/randomBoolean";
import randomNumber from "./core/randomization/randomNumber";
// arrays
import intersection from "./core/arrays/intersection";
import difference from "./core/arrays/difference";
import chunk from "./core/arrays/chunk";
import removeDuplicates from "./core/arrays/removeDuplicates";
import sample from "./core/arrays/sample";
// types
export type { Point, Direction } from "./types/globals";
// named exports
export {
// points
distance,
middle,
collision,
pointWithoutCollision,
collisionInArray,
angle,
randomPoint,
randomPoints,
area,
circleArea,
randomPointInDistance,
nearest,
farest,
perimeter,
positionInCircle,
possibleConnections,
center,
inLine,
rotate,
sort,
move,
scale,
cross,
square,
rectangle,
triangle,
pentagon,
// randomization
uniqueId,
randomNumber,
randomBoolean,
// math
average,
inRange,
degreesToRadians,
radiansToDegrees,
roundToPrecision,
// arrays
intersection,
difference,
chunk,
removeDuplicates,
sample
}
// default export
export default {
// points
distance,
middle,
collision,
pointWithoutCollision,
collisionInArray,
angle,
randomPoint,
randomPoints,
area,
circleArea,
randomPointInDistance,
nearest,
farest,
perimeter,
positionInCircle,
possibleConnections,
center,
inLine,
rotate,
sort,
move,
scale,
cross,
square,
rectangle,
triangle,
pentagon,
// randomization
uniqueId,
randomNumber,
randomBoolean,
// math
average,
inRange,
degreesToRadians,
radiansToDegrees,
roundToPrecision,
// arrays
intersection,
difference,
chunk,
removeDuplicates,
sample
}