Class DMCPoint

Object
   |
   +--DMCPoint

class DMCPoint


DMCPoint is a class that represents an x y point or a latLong point.
Defined in APIJS.js


Field Summary
 string TYPE
          Geometry type of the object ("POINT")
 float x
          X coordinate
 float y
          Y coordinate
 
Constructor Summary
DMCPoint(<float> x,<float> y, <bool> unbounded)
            Constructs a DMCPoint
 
Method Summary
 bool equals( <DMCPoint> point)
           Returns true if the points are equal
 DMCPoint getCenter()
           Returns the point
 DMCPoint getCentroid()
           Returns the point
 Object getHandles()
          
 float getLat()
           Returns latitude coordinate
 float getLatRadians()
           Returns the latitude in radians
 float getLng()
           Returns longitude coordinate
 float getLngRadians()
           Returns the longitude in radians
 DMCPoint getPoints()
           Returns the point
 float getX()
           Returns x coordinate
 float getY()
           Returns y coordinate
 bool intersects( <DMCGeometry> geometry)
           Returns true if the point is contained in the polygon
 void modifyByHandle(handle, newPosPt)
          
 Object projectToPixels(map)
          
 void setPoints(points)
           Sets the point.
 float setX(inX)
           Set x coordinate
 float setY(inY)
           Set y coordinate
 string toString()
           Returns the WKT representation

Field Detail

TYPE

string TYPE

x

float x

y

float y

Constructor Detail

DMCPoint

DMCPoint(<float> x,<float> y, <bool> unbounded)

Method Detail

equals

bool equals( <DMCPoint> point)

getCenter

DMCPoint getCenter()

getCentroid

DMCPoint getCentroid()

getHandles

Object getHandles()

getLat

float getLat()

getLatRadians

float getLatRadians()

getLng

float getLng()

getLngRadians

float getLngRadians()

getPoints

DMCPoint getPoints()

getX

float getX()

getY

float getY()

intersects

bool intersects( <DMCGeometry> geometry)

modifyByHandle

void modifyByHandle(handle, newPosPt)

projectToPixels

Object projectToPixels(map)

setPoints

void setPoints(points)

setX

float setX(inX)

setY

float setY(inY)

toString

string toString()


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