Using 'Traits' instead of 'ConeBasedSpannerTraits_2' as the template

paramter.
This commit is contained in:
Weisheng Si 2015-12-11 10:03:56 +11:00
parent 1970e4178a
commit 2fe6e1224b
1 changed files with 7 additions and 8 deletions

View File

@ -3,12 +3,11 @@
\cgalConcept \cgalConcept
The functors provided in this package for constructing cones and cone-based spanners The functors provided in this package for constructing cones and cone-based spanners
all have a template parameter `ConeBasedSpannerTraits_2`. To specify the requirements all have a template parameter `Traits`. To specify the requirements
for the models (i.e., the various kernels from CGAL) that can be passed to for the models (typically the kernels from CGAL) that can be passed to
this parameter, we document a concept also called this parameter, we document a concept called `ConeBasedSpannerTraits_2` here.
`ConeBasedSpannerTraits_2` here. Basically, this concept Basically, this concept specifies all the types and primitives (predicates and construction objects)
specifies all the types and primitives (predicates and construction objects) that that the model should have to make the functors work properly.
the model should include to make the functors work properly.
It is recommended that if you want to construct the cones or the cone-based spanners It is recommended that if you want to construct the cones or the cone-based spanners
exactly, you should use the kernel `CGAL::Exact_predicates_exact_constructions_kernel_with_root_of`; exactly, you should use the kernel `CGAL::Exact_predicates_exact_constructions_kernel_with_root_of`;
and if you want to construct them inexactly, you should use the kernel and if you want to construct them inexactly, you should use the kernel
@ -19,7 +18,7 @@ and if you want to construct them inexactly, you should use the kernel
*/ */
class ConeBasedSpannerTraits { class ConeBasedSpannerTraits_2 {
public: public:
/// \name Types /// \name Types
@ -94,4 +93,4 @@ Comparison_result CGAL::compare_signed_distance_to_line(
const CGAL::Point_2<Kernel> &q); const CGAL::Point_2<Kernel> &q);
/// @} /// @}
}; /* end ConeBasedSpannerTraits */ }; /* end ConeBasedSpannerTraits_2 */