Logo Search packages:      
Sourcecode: inkscape version File versions

Point Geom::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. Akin to 1 degree bezier.

Definition at line 211 of file point.h.

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

Generated by  Doxygen 1.6.0   Back to index