C'erano degli errori nell'oggetto punto:
codice:function Punto(cX,cY){ var x=cX; var y=cY; this.setPunto=function (coordinataX,coordinataY){ x=coordinataX; y=coordinataY; }; this.getX=function(){ return x; }; this.getY=function(){ return y; }; }