EMS.Geometry.Circle

A circle is a circle.  Circles are pseudo-spatial, in that they are spatially defined, but their arcs are not projected.

Inherits

Summary
EMS.Geometry.CircleA circle is a circle.
Properties
center{OpenLayers.Geometry.Point}
radius{float}
pixelRadius{boolean}
Functions
clone{EMS.Geometry.Circle} An exact clone of this EMS.Geometry.Circle
getCentroidCalculate the centroid of this geometry.
moveMoves a geometry by the given displacement along positive x and y axes.

Properties

radius

{float}

pixelRadius

{boolean}

Functions

clone

clone: function(obj)

Returns

{EMS.Geometry.Circle} An exact clone of this EMS.Geometry.Circle

getCentroid

getCentroid: function()

Calculate the centroid of this geometry.  This method is defined in subclasses.

Returns

{OpenLayers.Geometry.Point} The centroid of the circle

move

move: function(x,
y)

Moves a geometry by the given displacement along positive x and y axes.  This modifies the position of the geometry and clears the cached bounds.

Parameters

x{Float} Distance to move geometry in positive x direction.
y{Float} Distance to move geometry in positive y direction.
Point geometry class.
clone: function(obj)
{EMS.Geometry.Circle} An exact clone of this EMS.Geometry.Circle
A circle is a circle.
getCentroid: function()
Calculate the centroid of this geometry.
move: function(x,
y)
Moves a geometry by the given displacement along positive x and y axes.
A Geometry is a description of a geographic object.
Close