mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix issue in Point#getDirectedAngle()
This commit is contained in:
parent
51eff78919
commit
1bf7107918
1 changed files with 1 additions and 1 deletions
|
@ -642,7 +642,7 @@ var Point = Base.extend(/** @lends Point# */{
|
|||
// NOTE: Although we're reading from the argument list, we need the
|
||||
// above argument to prevent a bean from being created.
|
||||
point = Point.read(arguments);
|
||||
return Math.atan2(this.cross(_point), this.dot(_point)) * 180 / Math.PI;
|
||||
return Math.atan2(this.cross(point), this.dot(point)) * 180 / Math.PI;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue