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

NR::Point sp_darray_left_tangent ( NR::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 697 of file bezier-utils.cpp.

Referenced by generate_bezier(), and sp_darray_left_tangent().

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

Generated by  Doxygen 1.6.0   Back to index