UNPKG
@xtor/cga.js
Version:
latest (0.0.6)
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Xtor Compute Geometry Algorithm Libary 计算几何算法库
github.com/yszhao91/cga.js
yszhao91/cga.js
@xtor/cga.js
/
dist
/
struct
/
3d
/
Polygon.d.ts
9 lines
(8 loc)
•
281 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Vec3
}
from
'../../math/Vec3'
;
import
{
Polyline
}
from
"./Polyline"
;
export
declare
class
Polygon
extends
Polyline
{
isPolygon
:
boolean
;
constructor
(
vs
?:
any
[]
);
offset
(
distance
:
number
,
normal
?:
Vec3
):
Polygon
;
containPoint
(
point
:
Vec3
):
void
; }