UNPKG
cga.js
Version:
latest (0.0.1)
1.0.0
0.0.1
Xtor Compute Geometry Algorithm Libary 计算几何算法库
github.com/yszhao91/cga-ts
yszhao91/cga-ts
cga.js
/
src
/
math
/
Vec.ts
13 lines
(11 loc)
•
195 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * 暂不使用 */
export
class
Vec
extends
Array
{
constructor
(n: number) {
super
();
while
(n-- >
0
) {
this
[
this
.length] =
0
; } } }