mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Explain code a litter better.
This commit is contained in:
parent
8928a7b057
commit
8a6d53766e
1 changed files with 3 additions and 1 deletions
|
@ -322,7 +322,9 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
|||
if (t >= 0 && t < 1 && Curve.evaluate(vals, t, 0).y > point.x) {
|
||||
// If we're close to 0 and are not changing y-direction from the
|
||||
// previous curve, do not count this root, as we're merely
|
||||
// touching a tip.
|
||||
// touching a tip. Passing 1 for Curve.evaluate()'s type means
|
||||
// we're calculating tangents, and then check their y-slope for
|
||||
// a change of direction:
|
||||
if (t < Numerical.TOLERANCE && Curve.evaluate(
|
||||
this.getPrevious().getValues(matrix), 1, 1).y
|
||||
* Curve.evaluate(vals, t, 1).y >= 0)
|
||||
|
|
Loading…
Reference in a new issue