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

double Geom::LInfty ( Point const &  p )

Compute the L infinity, or maximum, norm of p.

Definition at line 71 of file point.cpp.

Referenced by Path::DoSimplify(), pen_handle_motion_notify(), and sp_draw_anchor_test().

    Coord const a(fabs(p[0]));
    Coord const b(fabs(p[1]));
    return ( a < b || IS_NAN(b)
             ? b
             : a );

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index