mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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)) {
|
if (Numerical.isZero(div)) {
|
||||||
return NaN;
|
return NaN;
|
||||||
} else {
|
} 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