diff --git a/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_2.h b/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_2.h index 4308916355a..75f7a1a5a94 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_2.h +++ b/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_2.h @@ -26,18 +26,23 @@ #ifndef CGAL_CARTESIAN_WEIGHTED_POINT_2_H #define CGAL_CARTESIAN_WEIGHTED_POINT_2_H -#include +#include +#include + #include +#include + namespace CGAL { template < class R_ > class Weighted_pointC2 { - typedef typename R_::Point_2 Point_2; - typedef typename R_::FT FT; - typedef typename R_::FT Weight; - typedef boost::tuple Rep; + typedef typename R_::Point_2 Point_2; + typedef typename R_::FT FT; + typedef FT Weight; + + typedef boost::tuple Rep; typedef typename R_::template Handle::type Base; Base base; diff --git a/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_3.h b/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_3.h index 254104d5f68..88e9ad8bbc8 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_3.h +++ b/Cartesian_kernel/include/CGAL/Cartesian/Weighted_point_3.h @@ -26,19 +26,23 @@ #ifndef CGAL_CARTESIAN_WEIGHTED_POINT_3_H #define CGAL_CARTESIAN_WEIGHTED_POINT_3_H -#include +#include +#include + #include +#include + namespace CGAL { template < class R_ > class Weighted_pointC3 { - typedef typename R_::Point_3 Point_3; + typedef typename R_::Point_3 Point_3; + typedef typename R_::FT FT; + typedef FT Weight; - typedef typename R_::FT FT; - typedef FT Weight; - typedef boost::tuple Rep; + typedef boost::tuple Rep; typedef typename R_::template Handle::type Base; Base base; diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous/Weighted_point_3.h b/Homogeneous_kernel/include/CGAL/Homogeneous/Weighted_point_3.h index 2e20d135438..c56f60721d3 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous/Weighted_point_3.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous/Weighted_point_3.h @@ -25,25 +25,23 @@ #ifndef CGAL_HOMOGENEOUS_WEIGHTED_POINT_3_H #define CGAL_HOMOGENEOUS_WEIGHTED_POINT_3_H +#include +#include + +#include + #include -#include -#include -#include -#include -#include -#include -#include namespace CGAL { template < class R_ > class Weighted_pointH3 { - typedef typename R_::Point_3 Point_3; + typedef typename R_::Point_3 Point_3; + typedef typename R_::FT FT; + typedef FT Weight; - typedef typename R_::FT FT; - typedef FT Weight; - typedef boost::tuple Rep; + typedef boost::tuple Rep; typedef typename R_::template Handle::type Base; Base base; diff --git a/Kernel_23/include/CGAL/Weighted_point_2.h b/Kernel_23/include/CGAL/Weighted_point_2.h index d798984eeb6..9b3e072ba5e 100644 --- a/Kernel_23/include/CGAL/Weighted_point_2.h +++ b/Kernel_23/include/CGAL/Weighted_point_2.h @@ -38,25 +38,24 @@ namespace CGAL { template class Weighted_point_2 : public R_::Kernel_base::Weighted_point_2 { - typedef typename R_::FT FT; - typedef typename R_::FT RT; + typedef typename R_::FT FT; + typedef typename R_::FT RT; - typedef Weighted_point_2 Self; + typedef Weighted_point_2 Self; CGAL_static_assertion((boost::is_same::value)); public: - - typedef Dimension_tag<2> Ambient_dimension; - typedef Dimension_tag<0> Feature_dimension; + typedef Dimension_tag<2> Ambient_dimension; + typedef Dimension_tag<0> Feature_dimension; typedef typename R_::Kernel_base::Weighted_point_2 Rep; - typedef typename R_::Cartesian_const_iterator_2 Cartesian_const_iterator; - typedef typename R_::Point_2 Point_2; - typedef typename R_::Vector_2 Vector_2; - typedef typename R_::Aff_transformation_2 Aff_transformation_2; + typedef typename R_::Cartesian_const_iterator_2 Cartesian_const_iterator; + typedef typename R_::Point_2 Point_2; + typedef typename R_::Aff_transformation_2 Aff_transformation_2; - typedef Point_2 Point; - typedef FT Weight; + typedef Point_2 Point; + typedef FT Weight; + typedef R_ R; const Rep& rep() const { @@ -68,8 +67,6 @@ public: return *this; } - typedef R_ R; - Weighted_point_2() {} Weighted_point_2(const Origin& o) diff --git a/Kernel_23/include/CGAL/Weighted_point_3.h b/Kernel_23/include/CGAL/Weighted_point_3.h index 2be6dfc1f2b..e7d777ada57 100644 --- a/Kernel_23/include/CGAL/Weighted_point_3.h +++ b/Kernel_23/include/CGAL/Weighted_point_3.h @@ -52,7 +52,6 @@ public: typedef typename R_::Kernel_base::Weighted_point_3 Rep; typedef typename R_::Cartesian_const_iterator_3 Cartesian_const_iterator; typedef typename R_::Point_3 Point_3; - typedef typename R_::Vector_3 Vector_3; typedef typename R_::Aff_transformation_3 Aff_transformation_3; typedef Point_3 Point;