From c8ca3c01eefbcf3335e36ad4ba6d49dd2aa6e485 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Tue, 13 Feb 2001 11:11:30 +0000 Subject: [PATCH] - Move Data_accessorH2<> in its own file in the H2 package. --- Old_Packages/Kernel_basic/changes.txt | 1 + .../include/CGAL/homogeneous_rep.h | 28 +------------------ 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/Old_Packages/Kernel_basic/changes.txt b/Old_Packages/Kernel_basic/changes.txt index 73af60ef915..935b70e1c68 100644 --- a/Old_Packages/Kernel_basic/changes.txt +++ b/Old_Packages/Kernel_basic/changes.txt @@ -5,6 +5,7 @@ - added function object classes Compute_area_2, Compute_squared_area_3, Compute_volume_3 - Towards Simple_homogeneous : PointH2 => PointH2 and similar. +- Move Data_accessorH2<> in its own file in the H2 package. 3.20 (25 Jan 2001) - Added iterator_traits_pointer_specs_for_simple_cartesian_kernel.h diff --git a/Old_Packages/Kernel_basic/include/CGAL/homogeneous_rep.h b/Old_Packages/Kernel_basic/include/CGAL/homogeneous_rep.h index d2a12f522c2..1cc5559354b 100644 --- a/Old_Packages/Kernel_basic/include/CGAL/homogeneous_rep.h +++ b/Old_Packages/Kernel_basic/include/CGAL/homogeneous_rep.h @@ -40,6 +40,7 @@ #include #include #include +#include #include @@ -50,33 +51,6 @@ CGAL_BEGIN_NAMESPACE -template < class R > -class Data_accessorH2 -{ -public: - typedef typename R::FT FT; - typedef typename R::RT RT; - typedef PointH2 Point; - - RT get_hx( Point const& p) const { return( p.hx()); } - RT get_hy( Point const& p) const { return( p.hy()); } - RT get_hw( Point const& p) const { return( p.hw()); } - - void - get( Point const& p, RT& hx, RT& hy, RT& hw) const - { - hx = get_hx( p); - hy = get_hy( p); - hw = get_hw( p); - } - - void - set( Point& p, RT const& hx, RT const& hy, RT const& hw) const - { - p = Point( hx, hy, hw); - } -}; - template class Homogeneous_base {