Search
Preparing search index...
The search index is not available
JSDK 2.7.0 API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
JS
math
geom
Polyline
Class Polyline
Hierarchy
Polygon
Polyline
Implements
Shape
Index
Constructors
constructor
Properties
_len
_points
Methods
add
Point
bounds
clone
equals
inside
intersects
is
Empty
number
Vertexes
onside
perimeter
vertexes
Constructors
constructor
new
Polyline
(
)
:
Polyline
new
Polyline
(
points
:
Array
<
ArrayPoint2
>
)
:
Polyline
Returns
Polyline
Parameters
points:
Array
<
ArrayPoint2
>
Returns
Polyline
Properties
Protected
_len
_len
:
any
Protected
_points
_points
:
Array
<
ArrayPoint2
>
Methods
add
Point
add
Point
(
x
:
number
, y
:
number
)
:
this
Appends new point to this
Polygon
.
Parameters
x:
number
y:
number
Returns
this
bounds
bounds
(
)
:
Rect
Returns
Rect
clone
clone
(
)
:
this
Returns
this
equals
equals
(
s
:
Polyline
)
:
boolean
Parameters
s:
Polyline
Returns
boolean
inside
inside
(
s
:
ArrayPoint2
|
Segment
|
Rect
)
:
boolean
Parameters
s:
ArrayPoint2
|
Segment
|
Rect
Returns
boolean
intersects
intersects
(
s
:
Segment
|
Line
|
Circle
|
Rect
)
:
boolean
Parameters
s:
Segment
|
Line
|
Circle
|
Rect
Returns
boolean
is
Empty
is
Empty
(
)
:
boolean
Returns
boolean
number
Vertexes
number
Vertexes
(
)
:
number
Returns
number
onside
onside
(
p
:
ArrayPoint2
)
:
boolean
Parameters
p:
ArrayPoint2
Returns
boolean
perimeter
perimeter
(
)
:
number
Returns
number
vertexes
vertexes
(
)
:
Array
<
ArrayPoint2
>
vertexes
(
ps
:
Array
<
ArrayPoint2
>
)
:
this
Returns
Array
<
ArrayPoint2
>
Parameters
ps:
Array
<
ArrayPoint2
>
Returns
this
Globals
JS
an
app
core
d2
ds
fx
input
ioc
lang
math
geom
media
model
net
store
sugar
ui
unit
util
view
Angle
Type
Arc
Type
Cir
Arc
Circle
Ellipse
Line
Polygon
Polyline
constructor
_len
_points
add
Point
bounds
clone
equals
inside
intersects
is
Empty
number
Vertexes
onside
perimeter
vertexes
Rect
Segment
Shapes
Triangle
Shape
F
L
M
N
P
R
S
V
in
Diagonal
Rect
relativeCCW
Appends new point to this
Polygon
.