mirror of https://github.com/CGAL/cgal
- Move Data_accessorH2<> in its own file in the H2 package.
This commit is contained in:
parent
9b829f8378
commit
c8ca3c01ee
|
|
@ -5,6 +5,7 @@
|
|||
- added function object classes Compute_area_2, Compute_squared_area_3,
|
||||
Compute_volume_3
|
||||
- Towards Simple_homogeneous : PointH2<FT,RT> => PointH2<R> 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
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
#include <CGAL/SphereH3.h>
|
||||
#include <CGAL/SegmentH3.h>
|
||||
#include <CGAL/TetrahedronH3.h>
|
||||
#include <CGAL/Data_accessorH2.h>
|
||||
|
||||
#include <CGAL/Quotient.h>
|
||||
|
||||
|
|
@ -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<R> 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 R_, class RT_, class FT_>
|
||||
class Homogeneous_base
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue