<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>I have problem with the function getArea() , I need to calculate the area of coordinate in SAD 69 SRID: 4291<br><br><br><br>Feature.prototype.getArea = function() {<br> //TODO area for circle<br> if (this.vertices.length > 1) {<br> //surface calculation<br> var measure = 0;<br> for (var i = 0; i<this.vertices.length - 1;i++)<br> measure += this.vertices[i].x * this.vertices[i+1].y - this.vertices[i+1].x * this.vertices[i].y;<br> measure += this.vertices[this.vertices.length -1].x * this.vertices[0].y - this.vertices[0].x * this.vertices[this.vertices.length -1].y;<br> return Math.abs(measure) /
2;<br> } else {<br> return 0;<br> }<br></div></div><br>
                <hr size=1>
Yahoo! Search<br>
Música para ver e ouvir: <a href="http://us.rd.yahoo.com/mail/br/tagline/search/video/*http://br.search.yahoo.com/search/video?p=james+blunt&ei=UTF-8&cv=g&x=wrt&vm=r&fr=intl-mail-br-b">You're Beautiful, do James Blunt</a></body></html>