1 function Polygon(number){
\r
3 function push(x, y){ // void
\r
4 var temp = new Object();
\r
5 temp.x = Math.floor(x);
\r
6 temp.y = Math.floor(y);
\r
7 this.array.push(temp);
\r
9 Polygon.prototype.push = push;
\r
11 function set(index, x, y){ // void
\r
12 this.array[index].x = Math.floor(x);
\r
13 this.array[index].y = Math.floor(y);
\r
15 Polygon.prototype.set = set;
\r
17 function reverse(){ // void
\r
18 this.array.reverse();
\r
20 Polygon.prototype.reverse = reverse;
\r
22 function concat(poly){ // void
\r
23 this.array = this.array.concat(poly.array);
\r
25 Polygon.prototype.concat = concat;
\r
28 this.array = new Array();
\r
32 for(var i = 0; i < number; i++){
\r