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

bool Geom::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 84 of file point.cpp.

References is_zero().

Referenced by bezier_fit_cubic_full(), generate_bezier(), and is_zero().

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


Generated by  Doxygen 1.6.0   Back to index