Permalink
Browse files

Added @static to new Point methods (thanks @fumio)

lannymcnie committed Dec 22, 2017
1 parent acd1bb6 commit 0a93e7befd2b85e9f8284f349b28529004beeb1c
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/easeljs/geom/Point.js
@@ -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();
@@ -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();

0 comments on commit 0a93e7b

Please sign in to comment.