<< Click to Display Table of Contents >>
new sg.geometry.Circle(center, options)
Description
create a circle geometry.
Position
Geometry.js
Parameters
Parameter |
Type |
Description |
|||||||||
center |
sg.geometry.Point |
The center of the circle |
|||||||||
options |
Object |
Options used to setup circle set object
|
Properties
Properties |
Type |
Description |
area |
Number |
Geometry area |
extent |
sg.geometry.Extent |
Geometry extent |
numberOfPoints |
Number |
Number of points on the perimeter. |
radius |
Number |
Circle radius |
rings |
Array.<sg.geometry.LinearRing> |
Array of multi-rings polygon |
type |
String |
Geometry type |
Methods
Methods |
Type |
Description |
||||||||||
addRing(ring) |
sg.geometry.LinearRing |
add a ring to a polygon.
|
||||||||||
contains(pt) |
pt:sg.geometry.Point Returns: Boolean |
return whether a point is contained in a polygon.
Returns:
|
||||||||||
getArea() |
Returns: Number |
return geometry area Returns:
|
||||||||||
getCentroid() |
Returns: sg.geometry.Point |
return geometry center Returns:
|
||||||||||
getExtent() |
Returns: sg.geometry.Extent |
return geometry extent Returns:
|
||||||||||
isClockwise(ring) |
ring:sg.geometry.LinearRing Returns:Boolean |
return whether a ring is clockwise Returns:
Returns:
|
||||||||||
toWkt() |
Returns: String |
return WKT string Returns:
|
||||||||||
update() |
update the geometry extent, area, and so on. |
|||||||||||
updateCircle_() |
update circle geometry. Use this method after you set the radius or numberOfPoints. |
Example
|
©2015 Supergeo Technologies Inc.