Logo Search packages:      
Sourcecode: inkscape version File versions

bool NR::is_zero ( Point const &  p  ) 

Returns true iff p is a zero vector, i.e. Point(0, 0).

(NaN is considered non-zero.)

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

{
    return ( p[0] == 0 &&
             p[1] == 0   );
}


Generated by  Doxygen 1.6.0   Back to index