I created a polygon from ar2D.
var polygon_ = new esri.geometry.Polygon({
"rings": ar2D,
"spatialReference": {
"wkid": 102100
}
});
var extent = polygon_.getExtent();
console.log("polygonExtent", extent);
var bContains = polygon_.contains(new esri.geometry.Point( ar2D[0] ));
------------------
However, the Results show:
the values of extent.xmax,extent.xmin,extent.ymax,extent.ymin are NaN
bContains = false
Unknwon why? Thanks if you can help.