Logo Search packages:      
Sourcecode: inkscape version File versions

double Geom::LInfty ( Point const &  p  ) 

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

Definition at line 71 of file point.cpp.

References LInfty().

Referenced by LInfty(), pen_handle_motion_notify(), pencil_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 );
}


Generated by  Doxygen 1.6.0   Back to index