c2.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Arc
Cell
Cell
Vertex
Circle
Convex
Hull
Delaunay
Limited
Voronoi
Line
Point
Polygon
Polyline
constructor
vertices
add
bounds
clear
closest
copy
distance
edges
length
reverse
rotate
scale
translate
Quad
Tree
Rect
Sector
Spline
Triangle
Vector
Voronoi
Hierarchy
Polyline
Index
Constructors
constructor
Properties
vertices
Methods
add
bounds
clear
closest
copy
distance
edges
length
reverse
rotate
scale
translate
Constructors
constructor
new
Polyline
(
)
:
Polyline
new
Polyline
(
points
:
Point
[]
)
:
Polyline
Returns
Polyline
Parameters
points:
Point
[]
Returns
Polyline
Properties
vertices
vertices
:
Point
[]
Methods
add
add
(
p
:
Point
)
:
Polyline
add
(
x
:
number
, y
:
number
)
:
Polyline
Parameters
p:
Point
Returns
Polyline
Parameters
x:
number
y:
number
Returns
Polyline
bounds
bounds
(
)
:
Rect
Returns
Rect
clear
clear
(
)
:
void
Returns
void
closest
closest
(
p
:
Point
)
:
Point
Parameters
p:
Point
Returns
Point
copy
copy
(
)
:
Polyline
Returns
Polyline
distance
distance
(
p
:
Point
)
:
number
Parameters
p:
Point
Returns
number
edges
edges
(
)
:
Line
[]
Returns
Line
[]
length
length
(
)
:
number
Returns
number
reverse
reverse
(
)
:
Polyline
Returns
Polyline
rotate
rotate
(
a
:
number
)
:
Polyline
rotate
(
a
:
number
, p
:
Point
)
:
Polyline
Parameters
a:
number
Returns
Polyline
Parameters
a:
number
p:
Point
Returns
Polyline
scale
scale
(
s
:
number
)
:
Polyline
scale
(
s
:
number
, p
:
Point
)
:
Polyline
Parameters
s:
number
Returns
Polyline
Parameters
s:
number
p:
Point
Returns
Polyline
translate
translate
(
x
:
any
, y
:
any
)
:
Polyline
Parameters
x:
any
y:
any
Returns
Polyline