Logo Search packages:      
Sourcecode: inkscape version File versions

D2< Piecewise< SBasis > > Geom::tan2 ( Piecewise< SBasis > const &  angle,
double  tol,
unsigned  order 

tan2 is the pseudo-inverse of atan2. It takes an angle and returns a unit_vector that points in the direction of angle.

angle a piecewise function of angle wrt t.
tol the maximum error allowed.
order the maximum degree to use for approximation

Definition at line 210 of file sbasis-geometric.cpp.

References cos(), and sin().

    return D2<Piecewise<SBasis> >(cos(angle, tol, order), sin(angle, tol, order));

Generated by  Doxygen 1.6.0   Back to index