mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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.
|
||||
*
|
||||
* @param {Point} point
|
||||
* @param {Boolean} squared Controls whether the distance should remain
|
||||
* squared, or its square root should be calculated.
|
||||
* @param {Boolean} [squared=false] Controls whether the distance should
|
||||
* remain squared, or its square root should be calculated.
|
||||
* @return {Number}
|
||||
*/
|
||||
getDistance: function(point, squared) {
|
||||
|
|
Loading…
Reference in a new issue