Revision 1d7da5b79fddc413a3218c0e0b546fa69f15de54 authored by Laurent Rineau on 06 March 2015, 08:18:03 UTC, committed by Laurent Rineau on 06 March 2015, 08:18:03 UTC
1 parent 39a43e3
cartesian_homogeneous_conversion.h
namespace CGAL {
/*!
\ingroup kernel_conversion
Functions to convert between %Cartesian and homogeneous kernels.
\sa `CGAL::Cartesian<FieldNumberType>`
\sa `CGAL::Cartesian_converter<K1, K2, NTConverter>`
\sa `CGAL::Homogeneous<RingNumberType>`
\sa `CGAL::Homogeneous_converter<K1, K2, RTConverter, FTConverter>`
\sa `CGAL::Simple_cartesian<FieldNumberType>`
\sa `CGAL::Simple_homogeneous<RingNumberType>`
*/
/// @{
/*!
converts 2D point `cp` with %Cartesian representation
into a 2D point with homogeneous representation with the same
number type.
*/
template <typename RT>
Point_2< Homogeneous<RT> >
cartesian_to_homogeneous(const Point_2< Cartesian<RT> >& cp);
/*!
converts 3D point `cp` with %Cartesian representation
into a 3D point with homogeneous representation with the same
number type.
*/
template <typename RT>
Point_3< Homogeneous<RT> >
cartesian_to_homogeneous(const Point_3< Cartesian<RT> >& cp);
/*!
converts 2D point `hp` with homogeneous representation
into a 2D point with %Cartesian representation with the same
number type.
*/
template <typename FT>
Point_2< Cartesian<FT> >
homogeneous_to_cartesian(const Point_2< Homogeneous<FT> >& hp);
/*!
converts 3D point `hp` with homogeneous representation
into a 3D point with %Cartesian representation with the same
number type.
*/
template <typename FT>
Point_3< Cartesian<FT> >
homogeneous_to_cartesian(const Point_3< Homogeneous<FT> >& hp);
/*!
converts the 2D point `hp` with homogeneous representation
with number type `RT` into a 2D point with %Cartesian
representation with number type `Quotient<RT>`.
*/
template <typename RT>
Point_2< Cartesian<Quotient<RT> > >
homogeneous_to_quotient_cartesian(const Point_2<Homogeneous<RT> >& hp);
/*!
converts the 3D point `hp` with homogeneous representation
with number type `RT` into a 3D point with %Cartesian
representation with number type `Quotient<RT>`.
*/
template <typename RT>
Point_3< Cartesian<Quotient<RT> > >
homogeneous_to_quotient_cartesian(const Point_3<Homogeneous<RT> >& hp);
/*!
converts 2D point `cp` with %Cartesian representation
with number type `Quotient<RT>` into a 2D point
with homogeneous representation with number type `RT`.
*/
template <typename RT>
Point_2< Homogeneous<RT> >
quotient_cartesian_to_homogeneous(
const Point_2< Cartesian< Quotient<RT> > >& cp);
/*!
converts 3D point `cp` with %Cartesian representation
with number type `Quotient<RT>` into a 3D point
with homogeneous representation with number type `RT`.
*/
template <typename RT>
Point_3< Homogeneous<RT> >
quotient_cartesian_to_homogeneous(
const Point_3< Cartesian< Quotient<RT> > >& cp);
} /* namespace CGAL */
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...