diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2015-07-04 15:25:59 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2015-07-04 15:25:59 +0000 |
| commit | 60437ac397d41678daba5daece227240e8ddd364 (patch) | |
| tree | 31f18c8296ffde9122492b46623375fc98585b17 /src/2geom/circle.cpp | |
| parent | 2Geom CMake adjustment (diff) | |
| download | inkscape-60437ac397d41678daba5daece227240e8ddd364.tar.gz inkscape-60437ac397d41678daba5daece227240e8ddd364.zip | |
Upgrade to 2Geom r2413
(bzr r14059.2.18)
Diffstat (limited to 'src/2geom/circle.cpp')
| -rw-r--r-- | src/2geom/circle.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/2geom/circle.cpp b/src/2geom/circle.cpp index ec59bbe4a..553981a72 100644 --- a/src/2geom/circle.cpp +++ b/src/2geom/circle.cpp @@ -101,6 +101,12 @@ Zoom Circle::inverseUnitCircleTransform() const return ret; } +Point Circle::initialPoint() const +{ + Point p(_center); + p[X] += _radius; + return p; +} Point Circle::pointAt(Coord t) const { return _center + Point::polar(t) * _radius; @@ -112,11 +118,11 @@ Coord Circle::valueAt(Coord t, Dim2 d) const { } Coord Circle::timeAt(Point const &p) const { + if (_center == p) return 0; return atan2(p - _center); } Coord Circle::nearestTime(Point const &p) const { - if (_center == p) return 0; return timeAt(p); } |
