Type.registerNamespace("Sys.Extended.UI.Seadragon");Type.registerNamespace("Seadragon");Seadragon.Point=Sys.Extended.UI.Seadragon.Point=function(a,b){this.x=typeof a=="number"?a:0;this.y=typeof b=="number"?b:0};Sys.Extended.UI.Seadragon.Point.prototype={plus:function(a){return new Sys.Extended.UI.Seadragon.Point(this.x+a.x,this.y+a.y)},minus:function(a){return new Sys.Extended.UI.Seadragon.Point(this.x-a.x,this.y-a.y)},times:function(a){return new Sys.Extended.UI.Seadragon.Point(this.x*a,this.y*a)},divide:function(a){return new Sys.Extended.UI.Seadragon.Point(this.x/a,this.y/a)},negate:function(){return new Sys.Extended.UI.Seadragon.Point(-this.x,-this.y)},distanceTo:function(a){return Math.sqrt(Math.pow(this.x-a.x,2)+Math.pow(this.y-a.y,2))},apply:function(a){return new Sys.Extended.UI.Seadragon.Point(a(this.x),a(this.y))},equals:function(a){return a instanceof Sys.Extended.UI.Seadragon.Point&&this.x===a.x&&this.y===a.y},toString:function(){return "("+this.x+","+this.y+")"}};Sys.Extended.UI.Seadragon.Point.registerClass("Sys.Extended.UI.Seadragon.Point",null,Sys.IDisposable);