mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 14:20:12 -04:00
Fix comments.
This commit is contained in:
parent
99f6597615
commit
5c3a6f72b6
2 changed files with 2 additions and 5 deletions
src/path
|
@ -1787,14 +1787,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
// t = pi * n + arctan(b cot(phi)) // y
|
||||
var tx = - Math.atan(b * Math.tan(phi)),
|
||||
ty = + Math.atan(b / Math.tan(phi)),
|
||||
// Due to symetry, we don't need to cycle through pi * n
|
||||
// solutions:
|
||||
// Due to symetry, we don't need to cycle through pi * n solutions:
|
||||
x = a * Math.cos(tx) * Math.cos(phi)
|
||||
- b * Math.sin(tx) * Math.sin(phi),
|
||||
y = b * Math.sin(ty) * Math.cos(phi)
|
||||
+ a * Math.cos(ty) * Math.sin(phi);
|
||||
// Now update the join / round padding, as required by
|
||||
// getBounds() and code below.
|
||||
return [Math.abs(x), Math.abs(y)];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue