Skip to content

Commit

Permalink
Added @static to new Point methods (thanks @Fumio)
Browse files Browse the repository at this point in the history
  • Loading branch information
lannymcnie committed Dec 22, 2017
1 parent acd1bb6 commit 0a93e7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/easeljs/geom/Point.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ this.createjs = this.createjs||{};
* @param {Point | Object} [pt] An object to copy the result into. If omitted a new {{#crossLink "Point"}}{{/crossLink}}
* will be returned.
* @return {Point} The new, interpolated point.
* @static
*/
Point.polar = function(len, angle, pt) {
pt = pt||new Point();
Expand Down Expand Up @@ -140,6 +141,7 @@ this.createjs = this.createjs||{};
* @param {Point | Object} [pt] An object to copy the result into. If omitted, a new {{#crossLink "Point"}}{{/crossLink}}
* will be returned.
* @return {Point} A new interpolated Point, or the `pt` passed in the 4th parameter with the interpolated values.
* @static
*/
Point.interpolate = function(pt1, pt2, f, pt) {
pt = pt || new Point();
Expand Down

0 comments on commit 0a93e7b

Please sign in to comment.