diff options
Diffstat (limited to 'src/2geom/sbasis-geometric.cpp')
| -rw-r--r-- | src/2geom/sbasis-geometric.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/2geom/sbasis-geometric.cpp b/src/2geom/sbasis-geometric.cpp index f4b445faa..1c180e143 100644 --- a/src/2geom/sbasis-geometric.cpp +++ b/src/2geom/sbasis-geometric.cpp @@ -4,7 +4,8 @@ //#include <2geom/solver.h> #include <2geom/sbasis-geometric.h> -/** Geometric operators on D2<SBasis> (1D->2D). +/* + * Geometric operators on D2<SBasis> (1D->2D). * Copyright 2007 JF Barraud * Copyright 2007 N Hurst * @@ -749,7 +750,7 @@ Geom::cubics_with_prescribed_curvature(Point const &M0, Point const &M1, * \brief returns all the parameter values of A whose tangent passes through P. * \relates D2 */ -std::vector<double> find_tangents(Point P, D2<SBasis> const &A) { +std::vector<double> Geom::find_tangents(Point P, D2<SBasis> const &A) { SBasis crs (cross(A - P, derivative(A))); crs = shift(crs*Linear(-1, 0)*Linear(-1, 0), -2); // We know that there is a double root at t=0 so we divide out t^2 // JFB points out that this is equivalent to (t-1)^2 followed by a divide by s^2 (shift) |
