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

static double sign ( double const   x ) [static]

Returns -1 or 1 according to the sign of x. Returns 1 for 0 and NaN.

Definition at line 930 of file seltrans.cpp.

Referenced by Inkscape::LivePathEffect::LPEKnot::addCanvasIndicators(), Inkscape::LivePathEffect::KnotHolderEntityCrossingSwitcher::knot_click(), Geom::sb2dsolve(), and Geom::signSb().

{
    return ( x < 0
             ? -1
             : 1 );
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index