mirror of https://github.com/CGAL/cgal
- Remove demo/Robustness/include/CGAL/kernel_to_kernel.h, as it's in CGAL.
This commit is contained in:
parent
f8f8dabd98
commit
21f35c92bc
|
|
@ -1,5 +1,6 @@
|
|||
1.7 (?? June 2001)
|
||||
- Get rid of #include <LEDA/rat_point.h>, and use Cartesian_converter<>.
|
||||
- Remove demo/Robustness/include/CGAL/kernel_to_kernel.h, as it's in CGAL.
|
||||
|
||||
1.6 (20 June 2001)
|
||||
- Update to new header style, and simplify code.
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
namespace CGAL {
|
||||
|
||||
template <class NumberType>
|
||||
struct Cartesian_double_to_Homogeneous
|
||||
{
|
||||
typedef Point_2< Homogeneous< NumberType> > Point;
|
||||
typedef Segment_2< Homogeneous< NumberType> > Segment;
|
||||
|
||||
Point
|
||||
operator()( const Point_2<Cartesian<double> >& p)
|
||||
{ return Point( NumberType(p.x()), NumberType(p.y()) ); }
|
||||
|
||||
Segment
|
||||
operator()( const Segment_2<Cartesian<double> >& s)
|
||||
{
|
||||
return Segment( Point( NumberType(s.source().x()),
|
||||
NumberType(s.source().y()) ),
|
||||
Point( NumberType(s.target().x()),
|
||||
NumberType(s.target().y()) ) );
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace CGAL
|
||||
|
||||
Loading…
Reference in New Issue