Navigation: Up, Table of Contents, Bibliography, Index, Title Page

Floating Point Epsilon Traits (Pm_segment_epsilon_traits<R>)

The class Pm_segment_epsilon_traits<R> is used for finite precision (floating-point) arithmetic. This is a temporary Traits Class. (We plan to implement more sophisticated methods to handle floating point arithmetic at a later stage.) The class uses a predefined (of type double) to decide whether two values should be considered the same. Two real values a and b are considered equal if |a - b| < . Thus when L norm is used, two points p1, p2 are treated as the same point if p1 - p2 = max(|p1.x() - p2.x()|, |p1.y() - p2.y()|) < . The value of can be determined through the class's constructor.

#include <CGAL/Pm_segment_epsilon_traits.h>


Next: Class declaration of Pm_leda_segment_exact_traits
Navigation: Up, Table of Contents, Bibliography, Index, Title Page
The GALIA project. Jan 18, 2000.