mirror of https://github.com/CGAL/cgal
putting both Get_equation together in function_objects_polynomial
This commit is contained in:
parent
feb97a7959
commit
d8f8af7e14
|
|
@ -60,22 +60,6 @@ namespace CircularFunctors {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template < class CK >
|
|
||||||
class Get_equation : public LinearFunctors::Get_equation<CK>
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
typedef typename CK::Polynomial_for_circles_2_2 result_type;
|
|
||||||
|
|
||||||
using LinearFunctors::Get_equation<CK>::operator();
|
|
||||||
|
|
||||||
result_type
|
|
||||||
operator() ( const typename CK::Circle_2 & c )
|
|
||||||
{
|
|
||||||
return CircularFunctors::get_equation<CK>(c);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace CircularFunctors
|
} // namespace CircularFunctors
|
||||||
|
|
||||||
template < typename K >
|
template < typename K >
|
||||||
|
|
|
||||||
|
|
@ -57,20 +57,6 @@ namespace LinearFunctors {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template < class CK >
|
|
||||||
class Get_equation
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
typedef typename CK::Polynomial_1_2 result_type;
|
|
||||||
|
|
||||||
result_type
|
|
||||||
operator() ( const typename CK::Line_2 & l )
|
|
||||||
{
|
|
||||||
return LinearFunctors::get_equation<CK>(l);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace LinearFunctors
|
} // namespace LinearFunctors
|
||||||
|
|
||||||
template < typename K >
|
template < typename K >
|
||||||
|
|
|
||||||
|
|
@ -647,6 +647,25 @@ template < class CK >
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template < class CK >
|
||||||
|
class Get_equation
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
typedef void result_type;
|
||||||
|
|
||||||
|
typename CK::Polynomial_1_2
|
||||||
|
operator() ( const typename CK::Line_2 & l )
|
||||||
|
{
|
||||||
|
return LinearFunctors::get_equation<CK>(l);
|
||||||
|
}
|
||||||
|
|
||||||
|
typename CK::Polynomial_for_circles_2_2
|
||||||
|
operator() ( const typename CK::Circle_2 & c )
|
||||||
|
{
|
||||||
|
return CircularFunctors::get_equation<CK>(c);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
template < class CK >
|
template < class CK >
|
||||||
class Split_2
|
class Split_2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue