Logo Search packages:      
Sourcecode: inkscape version File versions

double NR::LInfty ( Point const &  p  ) 

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

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

                                 {
    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