* add some tests of Path.area()
These tests currently fail because area() doesn't deal with Arc segments.
Fix in the following commit.
* make Path.area() approximate arcs
Fixes#37.
* Path.area(): fixup tabs/spaces for python3
* added asin to imports
* added asin to imports
* minor improvements to style, performance, and docstring
* add Line.point_to_t() and tests
These tests don't print anything while they run, and they use use the
assert() helpers from the unittest module.
* add Arc.point_to_t() and tests
These tests don't print anything while they run, and they use use the
assert() helpers from the unittest module.
* add a bunch of failing arc/line intersection tests
This commit contains a bunch of failing arc/line intersections that I
and other people have run into.
These tests don't print anything while they run, and they use use the
assert() helpers from the unittest module where possible.
All these tests are fixed in the following commit.
* better implementation of Arc.intersect(Line)
Fixesmathandy/svgpathtools#35.
This commit fixes all the arc/line intersection test cases added in the
previous commit.
This implementation provides special handling in Arc.intersect() when
`self` is a non-rotated Arc and `other_seg` is a Line. In this case
it uses the straight-forward closed-form solution to identify the
intersection points.
Rotated Arcs and Arcs intersecting with non-Line objects still use
the pre-existing intersection code, that part is totally untouched by
this commit.
* add Line.point_to_t() and tests
* add Arc.point_to_t() and tests
* add a bunch of failing arc/line intersection tests
This commit contains a bunch of failing arc/line intersections that I
and other people have run into.
All these tests are fixed in the following commit.
* better implementation of Arc.intersect(Line)
Fixesmathandy/svgpathtools#35.
This commit fixes all the arc/line intersection test cases added in the
previous commit.
This implementation provides special handling in Arc.intersect() when
`self` is a non-rotated Arc and `other_seg` is a Line. In this case
it uses the straight-forward closed-form solution to identify the
intersection points.
Rotated Arcs and Arcs intersecting with non-Line objects still use
the pre-existing intersection code, that part is totally untouched by
this commit.