mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Comment fixes
This commit is contained in:
parent
0d4e17b627
commit
861f4bdcd1
@ -152,8 +152,8 @@ $.Point.prototype = {
|
||||
* Compute the squared distance between this point and another point.
|
||||
* Useful for optimizing things like comparing distances.
|
||||
* @function
|
||||
* @param {OpenSeadragon.Point} point The point to compute the distance with.
|
||||
* @returns {Number} The distance between the 2 points
|
||||
* @param {OpenSeadragon.Point} point The point to compute the squared distance with.
|
||||
* @returns {Number} The squared distance between the 2 points
|
||||
*/
|
||||
squaredDistanceTo: function( point ) {
|
||||
return Math.pow( this.x - point.x, 2 ) +
|
||||
|
@ -156,6 +156,7 @@ $.Tile = function(level, x, y, bounds, exists, url, context2D) {
|
||||
/**
|
||||
* The squared distance of this tile to the viewport center.
|
||||
* Use for comparing tiles.
|
||||
* @private
|
||||
* @member {Number} squaredDistance
|
||||
* @memberof OpenSeadragon.Tile#
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user