Jürg Lehni
|
32709a176b
|
Fix some comments.
|
2013-05-26 17:48:36 -07:00 |
|
Jürg Lehni
|
7050edd6e4
|
Fix point sequence.
|
2013-05-26 17:40:40 -07:00 |
|
Jürg Lehni
|
90f0679700
|
Further simplify getConvexHull() by using p0 … p3 point objects.
|
2013-05-26 17:39:13 -07:00 |
|
Jürg Lehni
|
487c4c4aef
|
Further simplify getConvexHull() by inlining cross product calculations.
|
2013-05-26 17:32:44 -07:00 |
|
Jürg Lehni
|
9edab9c3aa
|
Simplify convex hull algorithm by returning lists of points rather than lines.
We can avoid some data redundancy that way at no performance cost.
|
2013-05-26 17:18:54 -07:00 |
|
Jürg Lehni
|
9540b7f6a9
|
Use addLineIntersection() in subdivision algorithm as well.
|
2013-05-26 17:10:29 -07:00 |
|
Jürg Lehni
|
20737c6664
|
Rename various intersection methods.
|
2013-05-26 17:06:23 -07:00 |
|
Jürg Lehni
|
5d7cc2fb40
|
Use new Line.getSignedDistance().
|
2013-05-26 16:58:49 -07:00 |
|
Jürg Lehni
|
80f9f6061c
|
Change the way the Line class handles direction vectors and infinite lines.
The beginning of performance improvements in the Line class.
|
2013-05-26 15:44:52 -07:00 |
|
Jürg Lehni
|
1fb0a3a13c
|
Always provide t parameter for CurveLocations if we know it.
|
2013-05-25 11:23:59 -07:00 |
|
Jürg Lehni
|
502c76dbce
|
Start merging fat-line clipping code into Curve class.
And add a prepro option for now.
|
2013-05-24 22:30:13 -07:00 |
|
Jürg Lehni
|
7e5f846190
|
Remove debugging code.
|
2013-05-24 17:57:13 -07:00 |
|
Jürg Lehni
|
bd3ac02bbe
|
Use Curve instead of this.
Compresses better and allows passing on function as callback.
|
2013-05-24 17:52:05 -07:00 |
|
Harikrishnan Gopalakrishnan
|
ce600f4ea4
|
Fix: #initialize() to correctly convert #getValue() array back to Curve object.
|
2013-05-11 00:59:30 +03:00 |
|
Jürg Lehni
|
7b8e27ddd9
|
Further simplify getNearestPoint() algorithm.
|
2013-05-07 00:07:18 -07:00 |
|
Jürg Lehni
|
3a7547a255
|
Bring back accidentally removed static functions on Curve.
|
2013-05-05 23:14:49 -07:00 |
|
Jürg Lehni
|
db42dfdfc1
|
Implement simpler strategy to iteratively find nearest points on paths.
Idea based on method described on http://pomax.github.io/bezierinfo/
|
2013-05-05 23:05:57 -07:00 |
|
Jürg Lehni
|
f704b00e00
|
Implement static Line.intersect() and use it to speed up Curve.getIntersections()
Unfortunately doesn't seem to have any impact!
|
2013-05-04 10:22:10 -07:00 |
|
Jürg Lehni
|
85de8a0b7d
|
Clean up Curve#divide() code.
|
2013-05-03 21:00:46 -07:00 |
|
Jürg Lehni
|
3101989974
|
Adjust precision of Curve#isFlatEnough() to cover rare edge cases.
|
2013-05-03 21:00:37 -07:00 |
|
hkrish
|
e75cc32a3b
|
Merge branch 'master' of https://github.com/paperjs/paper.js
* 'master' of https://github.com/paperjs/paper.js:
Undo recent change to Curve#getIntersection() since it breaks some boolean operations.
ý5:q
|
2013-05-03 19:24:03 +02:00 |
|
Jürg Lehni
|
840e879ba8
|
Undo recent change to Curve#getIntersection() since it breaks some boolean operations.
|
2013-05-02 11:32:24 -07:00 |
|
hkrish
|
10553c1bd8
|
Merge upstream
|
2013-05-02 14:18:24 +02:00 |
|
Jürg Lehni
|
e8fed1bdf0
|
Improve Curve#getIntersections() by avoiding further subdivision of flat curves.
|
2013-05-01 18:40:57 -07:00 |
|
Jürg Lehni
|
c61e8d57b9
|
Fix issue with recursive call of Curve.getIntersections().
|
2013-05-01 18:24:54 -07:00 |
|
hkrish
|
f239a3980d
|
Fix: Update the getIntersections method signature in recursive calls
|
2013-05-01 13:29:02 +02:00 |
|
Jürg Lehni
|
883e3ad563
|
Define CurveLocation#intersection as a way to retrieve the CurveLocation on the intersecting path when using Path#getIntersections().
|
2013-04-30 18:41:26 -07:00 |
|
Jürg Lehni
|
c7ab32c501
|
Rearrange linear curve conditions.
|
2013-04-26 14:37:37 -07:00 |
|
Jürg Lehni
|
c513a24f46
|
Handle intersection between linear curves without recursive subdivision.
Closes #207.
|
2013-04-26 14:31:42 -07:00 |
|
Jürg Lehni
|
74f6a93b33
|
Optimize Curve.getArea().
|
2013-04-25 17:47:11 -07:00 |
|
Jürg Lehni
|
898e216668
|
Implement Path#getArea() and CompoundPath#getArea().
|
2013-04-25 17:37:19 -07:00 |
|
Jürg Lehni
|
80a1129eab
|
Consistently use 'this' rather than 'Curve'.
|
2013-04-25 17:19:00 -07:00 |
|
Jürg Lehni
|
1b5ca4dec9
|
Rename Curve._addIntersections() to Curve.getIntersections()
|
2013-04-25 17:17:53 -07:00 |
|
Jürg Lehni
|
eaa6e3bb6b
|
Improve Curve#getCrossings() documentation and code.
|
2013-04-25 11:08:50 -07:00 |
|
Jürg Lehni
|
d7e075d316
|
Handle contour edge cases in Path#contains().
Closes #208.
|
2013-04-25 11:03:49 -07:00 |
|
Jürg Lehni
|
dc9a9c42d2
|
Cleanup solveCubic() further.
|
2013-04-21 08:44:41 -07:00 |
|
Jonathan Puckey
|
52e7c39567
|
Improve Curve documentation.
|
2013-04-21 15:43:57 +02:00 |
|
Jürg Lehni
|
c45ad26b67
|
Remove tolerance parameter from solveCubic() / solveQuadratic() since we should always use EPSILON.
|
2013-04-20 19:58:42 -07:00 |
|
Jürg Lehni
|
14aa8e5dea
|
Improve precision of Numerical.solveCubic() and fix issues in Curve.getCrossings().
Closes #202.
|
2013-04-20 19:14:19 -07:00 |
|
Jürg Lehni
|
461def5383
|
Fix issue with imprecise tangents / normals to curves at t = 0, 1.
|
2013-04-20 17:40:19 -07:00 |
|
Jürg Lehni
|
1952e3dc7d
|
Implement Curve#getCurvatureAt().
|
2013-04-20 17:26:51 -07:00 |
|
Jürg Lehni
|
9fe1ff951a
|
Clean up code.
|
2013-04-09 20:36:38 -07:00 |
|
Jürg Lehni
|
7f245974e6
|
Implement a faster method to filter out beginnings of intersected curves.
|
2013-04-09 20:35:31 -07:00 |
|
Jürg Lehni
|
a9a0857ba4
|
Find a better strategy to avoid duplicate solutions in PathItem#getIntersections().
Closes #197.
|
2013-04-09 20:27:55 -07:00 |
|
Jürg Lehni
|
d3bb68d0e0
|
Use faster Array construction.
|
2013-04-09 07:55:09 -07:00 |
|
Jürg Lehni
|
a0b903e49c
|
Simply call slice() instead of slice(0).
|
2013-04-06 18:39:17 +02:00 |
|
Jürg Lehni
|
e854254986
|
Insert linear segments when dividing linear curves.
|
2013-03-19 16:17:12 -07:00 |
|
Jürg Lehni
|
2230c2888d
|
Fix issue with Curve#divide() where the wrong curve reference is returned.
|
2013-03-01 20:19:44 -08:00 |
|
Jürg Lehni
|
02ca95eb46
|
Avoid accidental global leakage.
|
2013-02-08 16:12:57 -08:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|