CGAL 6.1.1 - 2D Arrangements

Loading...
Searching...
No Matches
List of all members
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`.

## 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.