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

double NR::LInfty ( Point const &  p  ) 

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

Definition at line 7 of file nr-point-fns.cpp.

Referenced by pen_handle_motion_notify(), and sp_draw_anchor_test().

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

Generated by  Doxygen 1.6.0   Back to index