Class DMCCircle

Object
   |
   +--DMCCircle

class DMCCircle


DMCCircle is a class that represents a circle
Defined in APIJS.js

Author: : JPeng


Field Summary
 Object dmcMap
          
 Object points
          
 Object polygon
          
 string TYPE
          Geometry type of the object ("CIRCLE")
 
Constructor Summary
DMCCircle( pointArray, dmcMap )
            Constructs a DMCCircle
 
Method Summary
 void clearBoundPoly()
          
 bool contains( <DMCPoint> p)
           Returns true if the point is contained in the geometry
 Object getArea()
          
 Object getBoundPoly()
          
 DMCBounds getBounds()
           Returns a DMCBounds that contains the circle
 DMCBounds getBoundsInPixel()
           Returns a DMCBounds in pixel coordinates that contains the circle
 DMCPoint getCenter()
           Returns the center of the circle
 DMCPoint getCentroid()
           Returns the center of the circle assuming the points are in geographics (Long, Lat)
 Object getLength()
          
 DMCPoint[] getPoints()
           Returns all the points.
 DMCPoint getVertex( <int> index)
           Returns the vertex at the specified index
 int getVertexCount()
           Returns the vertext count
 bool intersects( <DMCPoint> geometry)
           Returns true if the geometry intersects this geometry.
 string toString()
           Returns the WKT representation of a circle

Field Detail

dmcMap

Object dmcMap

points

Object points

polygon

Object polygon

TYPE

string TYPE

Constructor Detail

DMCCircle

DMCCircle( pointArray, dmcMap )

Method Detail

clearBoundPoly

void clearBoundPoly()

contains

bool contains( <DMCPoint> p)

getArea

Object getArea()

getBoundPoly

Object getBoundPoly()

getBounds

DMCBounds getBounds()

getBoundsInPixel

DMCBounds getBoundsInPixel()

getCenter

DMCPoint getCenter()

getCentroid

DMCPoint getCentroid()

getLength

Object getLength()

getPoints

DMCPoint[] getPoints()

getVertex

DMCPoint getVertex( <int> index)

getVertexCount

int getVertexCount()

intersects

bool intersects( <DMCPoint> geometry)

toString

string toString()


Documentation generated by JSDoc on Mon Nov 24 17:54:35 2008