mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 22:56:11 +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.
|
* Compute the squared distance between this point and another point.
|
||||||
* Useful for optimizing things like comparing distances.
|
* Useful for optimizing things like comparing distances.
|
||||||
* @function
|
* @function
|
||||||
* @param {OpenSeadragon.Point} point The point to compute the distance with.
|
* @param {OpenSeadragon.Point} point The point to compute the squared distance with.
|
||||||
* @returns {Number} The distance between the 2 points
|
* @returns {Number} The squared distance between the 2 points
|
||||||
*/
|
*/
|
||||||
squaredDistanceTo: function( point ) {
|
squaredDistanceTo: function( point ) {
|
||||||
return Math.pow( this.x - point.x, 2 ) +
|
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.
|
* The squared distance of this tile to the viewport center.
|
||||||
* Use for comparing tiles.
|
* Use for comparing tiles.
|
||||||
|
* @private
|
||||||
* @member {Number} squaredDistance
|
* @member {Number} squaredDistance
|
||||||
* @memberof OpenSeadragon.Tile#
|
* @memberof OpenSeadragon.Tile#
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user