|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
string TYPE
float x
float y
| Constructor Detail |
DMCPoint(<float> x,<float> y, <bool> unbounded)
x - X coordinate
y - Y coordinate
unbounded - if true then do not constrain to latitude longitude coordinates.
| Method Detail |
bool equals( <DMCPoint> point)
point - A DMCPoint
DMCPoint getCenter()
DMCPoint getCentroid()
Object getHandles()
float getLat()
float getLatRadians()
float getLng()
float getLngRadians()
DMCPoint getPoints()
float getX()
float getY()
bool intersects( <DMCGeometry> geometry)
geometry - Any DMCGeometry : DMCPoint, DMCBounds, DMCPolygon, DMCLineString
void modifyByHandle(handle, newPosPt)
Object projectToPixels(map)
void setPoints(points)
float setX(inX)
x - coordinate
float setY(inY)
y - coordinate
string toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||