1// Name: Seadragon.Seadragon.Point.debug.js 2// Assembly: AjaxControlToolkit 3// Version: 4.1.7.1213 4// FileVersion: 4.1.7.1213 5// (c) 2010 CodePlex Foundation 6Type.registerNamespace('Sys.Extended.UI.Seadragon'); 7Type.registerNamespace('Seadragon'); 8 9Seadragon.Point=Sys.Extended.UI.Seadragon.Point = function(x, y) { 10 this.x = typeof (x) == "number" ? x : 0; 11 this.y = typeof (y) == "number" ? y : 0; 12}; 13Sys.Extended.UI.Seadragon.Point.prototype = { 14 15 plus: function(point) { 16 return new Sys.Extended.UI.Seadragon.Point(this.x + point.x, this.y + point.y); 17 }, 18 19 minus: function(point) { 20 return new Sys.Extended.UI.Seadragon.Point(this.x - point.x, this.y - point.y); 21 }, 22 23 times: function(factor) { 24 return new Sys.Extended.UI.Seadragon.Point(this.x * factor, this.y * factor); 25 }, 26 27 divide: function(factor) { 28 return new Sys.Extended.UI.Seadragon.Point(this.x / factor, this.y / factor); 29 }, 30 31 negate: function() { 32 return new Sys.Extended.UI.Seadragon.Point(-this.x, -this.y); 33 }, 34 35 distanceTo: function(point) { 36 return Math.sqrt(Math.pow(this.x - point.x, 2) + 37 Math.pow(this.y - point.y, 2)); 38 }, 39 40 apply: function(func) { 41 return new Sys.Extended.UI.Seadragon.Point(func(this.x), func(this.y)); 42 }, 43 44 equals: function(point) { 45 return (point instanceof Sys.Extended.UI.Seadragon.Point) && 46 (this.x === point.x) && (this.y === point.y); 47 }, 48 49 toString: function() { 50 return "(" + this.x + "," + this.y + ")"; 51 } 52}; 53Sys.Extended.UI.Seadragon.Point.registerClass('Sys.Extended.UI.Seadragon.Point', null, Sys.IDisposable);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.