mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
parent
4fab100e71
commit
04a0c995bc
1 changed files with 2 additions and 1 deletions
|
@ -331,7 +331,8 @@ var Point = Base.extend(/** @lends Point# */{
|
|||
if (Numerical.isZero(div)) {
|
||||
return NaN;
|
||||
} else {
|
||||
return Math.acos(this.dot(point) / div);
|
||||
var a = this.dot(point) / div;
|
||||
return Math.acos(a < -1 ? -1 : a > 1 ? 1 : a);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue