Function

CGAL::cartesian_to_homogeneous

#include <CGAL/cartesian_homogeneous_conversion.h>

Point_2< Homogeneous<RT> > cartesian_to_homogeneous ( Point_2< Cartesian<RT> > cp)
converts 2d point cp with Cartesian representation into a 2d point with homogeneous representation with the same number type.

Point_3< Homogeneous<RT> > cartesian_to_homogeneous ( Point_3< Cartesian<RT> > cp)
converts 3d point cp with Cartesian representation into a 3d point with homogeneous representation with the same number type.

See Also

CGAL::Cartesian<FieldNumberType>
CGAL::Cartesian_converter<K1, K2, NTConverter>
CGAL::Homogeneous<RingNumberType>
CGAL::Homogeneous_converter<K1, K2, RTConverter, FTConverter>
CGAL::homogeneous_to_cartesian
CGAL::homogeneous_to_quotient_cartesian
CGAL::quotient_cartesian_to_homogeneous
CGAL::Simple_cartesian<FieldNumberType>
CGAL::Simple_homogeneous<RingNumberType>