Logo Search packages:      
Sourcecode: inkscape version File versions

void NArtBpath::setC ( unsigned const   i,
NR::Point const &  p 
) [inline]

Set i-th position data pair from Point

Precondition:
1 <= i <= 3

Definition at line 38 of file n-art-bpath.h.

References y1, y2, and y3.

Referenced by sp_curve_curveto(), sp_curve_lineto(), sp_curve_lineto_moving(), and tmpl_curve_transform().

                                                  {
        using NR::X; using NR::Y;
        switch (i) {
            case 1: x1 = p[X]; y1 = p[Y]; break;
            case 2: x2 = p[X]; y2 = p[Y]; break;
            case 3: x3 = p[X]; y3 = p[Y]; break;
            default: abort();
        }
    }


Generated by  Doxygen 1.6.0   Back to index