Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Point Geom::darray_left_tangent ( Point const   d[],
unsigned const   len 

Estimate the (forward) tangent at point d[first + 0.5].

Unlike the center and right versions, this calculates the tangent in the way one might expect, i.e., wrt increasing index into d.

(2 <= len) and (d[0] != d[1]).

Definition at line 714 of file bezier-utils.cpp.

References unit_vector().

Referenced by darray_left_tangent(), and generate_bezier().

    assert( len >= 2 );
    assert( d[0] != d[1] );
    return unit_vector( d[1] - d[0] );

Generated by  Doxygen 1.6.0   Back to index