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
constructor
x
y
copy
distance
distance
Sq
lerp
rotate
scale
translate
Polygon
Polyline
Quad
Tree
Rect
Sector
Spline
Triangle
Vector
Voronoi
Hierarchy
Point
Index
Constructors
constructor
Properties
x
y
Methods
copy
distance
distance
Sq
lerp
rotate
scale
translate
Constructors
constructor
new
Point
(
)
:
Point
new
Point
(
p
:
Point
)
:
Point
new
Point
(
x
:
number
, y
:
number
)
:
Point
Returns
Point
Parameters
p:
Point
Returns
Point
Parameters
x:
number
y:
number
Returns
Point
Properties
x
x
:
number
y
y
:
number
Methods
copy
copy
(
)
:
Point
Returns
Point
distance
distance
(
p
:
Point
)
:
number
Parameters
p:
Point
Returns
number
distance
Sq
distance
Sq
(
p
:
Point
)
:
number
Parameters
p:
Point
Returns
number
lerp
lerp
(
p
:
Point
, t
:
number
)
:
Point
Parameters
p:
Point
t:
number
Returns
Point
rotate
rotate
(
a
:
number
)
:
Point
rotate
(
a
:
number
, p
:
Point
)
:
Point
Parameters
a:
number
Returns
Point
Parameters
a:
number
p:
Point
Returns
Point
scale
scale
(
s
:
number
)
:
Point
scale
(
s
:
number
, p
:
Point
)
:
Point
Parameters
s:
number
Returns
Point
Parameters
s:
number
p:
Point
Returns
Point
translate
translate
(
x
:
number
, y
:
number
)
:
Point
Parameters
x:
number
y:
number
Returns
Point