Logo Search packages:      
Sourcecode: inkscape version File versions

Point NR::Lerp ( double const   t,
Point const   a,
Point const   b 
) [inline]

Given two points and a parameter t [0, 1], return a point proportionally from a to b by t.

Definition at line 54 of file nr-point-fns.h.

{
    return ( ( 1 - t ) * a
             + t * b );
}


Generated by  Doxygen 1.6.0   Back to index