CGAL 5.1 - 2D and 3D Linear Geometry Kernel
Cartesian/Homogenous Conversion

Classes

class  CGAL::Cartesian_converter< K1, K2, NTConverter >
 
class  CGAL::Homogeneous_converter< K1, K2, RTConverter, FTConverter >
 
template<typename RT >
Point_2< Homogeneous< RT > > CGAL::cartesian_to_homogeneous (const Point_2< Cartesian< RT > > &cp)
 converts 2D point cp with Cartesian representation into a 2D point with homogeneous representation with the same number type. More...
 
template<typename RT >
Point_3< Homogeneous< RT > > CGAL::cartesian_to_homogeneous (const Point_3< Cartesian< RT > > &cp)
 converts 3D point cp with Cartesian representation into a 3D point with homogeneous representation with the same number type. More...
 
template<typename FT >
Point_2< Cartesian< FT > > CGAL::homogeneous_to_cartesian (const Point_2< Homogeneous< FT > > &hp)
 converts 2D point hp with homogeneous representation into a 2D point with Cartesian representation with the same number type. More...
 
template<typename FT >
Point_3< Cartesian< FT > > CGAL::homogeneous_to_cartesian (const Point_3< Homogeneous< FT > > &hp)
 converts 3D point hp with homogeneous representation into a 3D point with Cartesian representation with the same number type. More...
 
template<typename RT >
Point_2< Cartesian< Quotient< RT > > > CGAL::homogeneous_to_quotient_cartesian (const Point_2< Homogeneous< RT > > &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>. More...
 
template<typename RT >
Point_3< Cartesian< Quotient< RT > > > CGAL::homogeneous_to_quotient_cartesian (const Point_3< 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>. More...
 
template<typename RT >
Point_2< Homogeneous< RT > > CGAL::quotient_cartesian_to_homogeneous (const Point_2< Cartesian< Quotient< RT > > > &cp)
 converts 2D point cp with Cartesian representation with number type Quotient<RT> into a 2D point with homogeneous representation with number type RT. More...
 
template<typename RT >
Point_3< Homogeneous< RT > > CGAL::quotient_cartesian_to_homogeneous (const Point_3< 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. More...
 

Function Documentation

◆ cartesian_to_homogeneous() [1/2]

template<typename RT >
Point_2< Homogeneous<RT> > CGAL::cartesian_to_homogeneous ( const Point_2< Cartesian< RT > > &  cp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts 2D point cp with Cartesian representation into a 2D point with homogeneous representation with the same number type.

Functions to convert between Cartesian and homogeneous kernels.

See also
CGAL::Cartesian<FieldNumberType>
CGAL::Cartesian_converter<K1, K2, NTConverter>
CGAL::Homogeneous<RingNumberType>
CGAL::Homogeneous_converter<K1, K2, RTConverter, FTConverter>
CGAL::Simple_cartesian<FieldNumberType>
CGAL::Simple_homogeneous<RingNumberType>

◆ cartesian_to_homogeneous() [2/2]

template<typename RT >
Point_3< Homogeneous<RT> > CGAL::cartesian_to_homogeneous ( const Point_3< Cartesian< RT > > &  cp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts 3D point cp with Cartesian representation into a 3D point with homogeneous representation with the same number type.

◆ homogeneous_to_cartesian() [1/2]

template<typename FT >
Point_2< Cartesian<FT> > CGAL::homogeneous_to_cartesian ( const Point_2< Homogeneous< FT > > &  hp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts 2D point hp with homogeneous representation into a 2D point with Cartesian representation with the same number type.

◆ homogeneous_to_cartesian() [2/2]

template<typename FT >
Point_3< Cartesian<FT> > CGAL::homogeneous_to_cartesian ( const Point_3< Homogeneous< FT > > &  hp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts 3D point hp with homogeneous representation into a 3D point with Cartesian representation with the same number type.

◆ homogeneous_to_quotient_cartesian() [1/2]

template<typename RT >
Point_2< Cartesian<Quotient<RT> > > CGAL::homogeneous_to_quotient_cartesian ( const Point_2< Homogeneous< RT > > &  hp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts the 2D point hp with homogeneous representation with number type RT into a 2D point with Cartesian representation with number type Quotient<RT>.

◆ homogeneous_to_quotient_cartesian() [2/2]

template<typename RT >
Point_3< Cartesian<Quotient<RT> > > CGAL::homogeneous_to_quotient_cartesian ( const Point_3< Homogeneous< RT > > &  hp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts the 3D point hp with homogeneous representation with number type RT into a 3D point with Cartesian representation with number type Quotient<RT>.

◆ quotient_cartesian_to_homogeneous() [1/2]

template<typename RT >
Point_2< Homogeneous<RT> > CGAL::quotient_cartesian_to_homogeneous ( const Point_2< Cartesian< Quotient< RT > > > &  cp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts 2D point cp with Cartesian representation with number type Quotient<RT> into a 2D point with homogeneous representation with number type RT.

◆ quotient_cartesian_to_homogeneous() [2/2]

template<typename RT >
Point_3< Homogeneous<RT> > CGAL::quotient_cartesian_to_homogeneous ( const Point_3< Cartesian< Quotient< RT > > > &  cp)

#include <CGAL/cartesian_homogeneous_conversion.h>

converts 3D point cp with Cartesian representation with number type Quotient<RT> into a 3D point with homogeneous representation with number type RT.