EMS.Geometry.Ellipse

An ellipse is a closed curve geometry defined by an origin (or center), a radius on the X axis (radiusX), a radius on the Y axis (radiusY), and an angle of rotation.  Ellipses are pseudo-spatial, in that they are spatially defined, but their curves are not projected.

Inherits

Summary
EMS.Geometry.EllipseAn ellipse is a closed curve geometry defined by an origin (or center), a radius on the X axis (radiusX), a radius on the Y axis (radiusY), and an angle of rotation.
Properties
center{OpenLayers.Geometry.Point}
radiusX{float}
radiusX{float}
pixelRadius{boolean} NB:Not implemented
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

radiusX

{float}

radiusX

{float}

pixelRadius

{boolean} NB:Not implemented

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