34#ifndef LIB2GEOM_SEEN_NEAREST_TIME_H
35#define LIB2GEOM_SEEN_NEAREST_TIME_H
57 return d[0] * v[0] + d[1] * v[1];
72 D2<SBasis>
const &
c, D2<SBasis>
const &deriv,
73 double from = 0,
double to = 1);
78 double from = 0,
double to = 1 )
90 D2<SBasis>
const&
c, D2<SBasis>
const& dc,
91 double from = 0,
double to = 1 );
97 double from = 0,
double to = 1)
107 Piecewise< D2<SBasis> >
const &
c,
108 double from,
double to);
119 Piecewise< D2<SBasis> >
const &
c,
120 double from,
double to);
Defines the different types of exceptions that 2geom can throw.
pair< double, double > Point
Bernstein-Bezier polynomial.
Adaptor that creates 2D functions from 1D ones.
Function defined as discrete pieces.
Two-dimensional point that doubles as a vector.
Lifts one dimensional objects into 2D.
double Coord
Floating point type used to store coordinates.
Various utility functions.
Coord nearest_time(Point const &p, Curve const &c)
std::vector< double > all_nearest_times(Point const &p, D2< SBasis > const &c, D2< SBasis > const &dc, double from=0, double to=1)
Bezier derivative(Bezier const &a)
Piecewise function class.