CGAL 5.3 - 2D Arrangements
CGAL::Arr_algebraic_segment_traits_2< Coefficient >::Construct_curve_2 Class Reference

#include <CGAL/Arr_algebraic_segment_traits_2.h>

Object Creation Functors

Curve_2 operator() (Polynomial_2 p)
 Returns a Curve_2 object that represents the curve defined by the polynomial p
Curve_2 operator() (std::string s)
 Returns a Curve_2 object specified by s. More...

Member Function Documentation

◆ operator()()

template<typename Coefficient >
Curve_2 CGAL::Arr_algebraic_segment_traits_2< Coefficient >::Construct_curve_2::operator() ( std::string  s)

Returns a Curve_2 object specified by s.

The passed string represents the defining polynomial of the curve and must be given in a MAPLE-readable format using "x" as first and "y" as second variable, e.g., "(x^3*y-2*x)*(-6*x-y^3*x^6)" for integer coefficients, and "3/2*x*y^4-5/7*x^2+3/1" for rational coefficients.