mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-23 07:49:48 -05:00
Define squared parameter in Point#getDistance() as optional.
This commit is contained in:
parent
b22ff5ecca
commit
88dff19f73
1 changed files with 2 additions and 2 deletions
|
@ -411,8 +411,8 @@ var Point = this.Point = Base.extend(/** @lends Point# */{
|
||||||
* Returns the distance between the point and another point.
|
* Returns the distance between the point and another point.
|
||||||
*
|
*
|
||||||
* @param {Point} point
|
* @param {Point} point
|
||||||
* @param {Boolean} squared Controls whether the distance should remain
|
* @param {Boolean} [squared=false] Controls whether the distance should
|
||||||
* squared, or its square root should be calculated.
|
* remain squared, or its square root should be calculated.
|
||||||
* @return {Number}
|
* @return {Number}
|
||||||
*/
|
*/
|
||||||
getDistance: function(point, squared) {
|
getDistance: function(point, squared) {
|
||||||
|
|
Loading…
Reference in a new issue