diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-09-16 01:27:54 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-09-16 01:27:54 +0000 |
| commit | 07eaeb8f391513dad456cc4d1a5939d2bb2f9c65 (patch) | |
| tree | f2c503eaba0bf3ad33cd39fa78cccf281fa03e06 /src/2geom/sbasis-geometric.cpp | |
| parent | add verticalpattern checkbox to path-along-path and some parameters that are ... (diff) | |
| download | inkscape-07eaeb8f391513dad456cc4d1a5939d2bb2f9c65.tar.gz inkscape-07eaeb8f391513dad456cc4d1a5939d2bb2f9c65.zip | |
merge in 2geom rev. 1154
(bzr r3756)
Diffstat (limited to 'src/2geom/sbasis-geometric.cpp')
| -rw-r--r-- | src/2geom/sbasis-geometric.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/2geom/sbasis-geometric.cpp b/src/2geom/sbasis-geometric.cpp index fde907857..b30c3a655 100644 --- a/src/2geom/sbasis-geometric.cpp +++ b/src/2geom/sbasis-geometric.cpp @@ -10,7 +10,7 @@ * * The functions defined in this header related to 2d geometric operations such as arc length, * unit_vector, curvature, and centroid. Most are built on top of unit_vector, which takes an - * arbitrary D2 and returns an D2 with unit length with the same direction. + * arbitrary D2 and returns a D2 with unit length with the same direction. * * Todo/think about: * arclength D2 -> sbasis (giving arclength function) @@ -198,13 +198,13 @@ Geom::unitVector(D2<SBasis> const &V_in, double tol, unsigned order){ r_eqn2 = Linear(1)-(a*a+b*b); } - //our candidat is: + //our candidate is: D2<SBasis> unitV; unitV[0] = b; unitV[1] = -a; //is it good? - double rel_tol = max(1.,max(V_in[0].tailError(0),V_in[1].tailError(0)))*tol; + double rel_tol = std::max(1.,std::max(V_in[0].tailError(0),V_in[1].tailError(0)))*tol; if (r_eqn1.tailError(order)>rel_tol || r_eqn2.tailError(order)>tol){ //if not: subdivide and concat results. |
