CGAL::Min_ellipse_2_traits_2<K>

Definition

The class Min_ellipse_2_traits_2<K> is a traits class for CGAL::Min_ellipse_2<Traits> using the two-dimensional CGAL kernel.

#include <CGAL/Min_ellipse_2_traits_2.h>

Requirements

The template parameter K is a model for Kernel.

Is Model for the Concepts

MinEllipse2Traits

Types

Min_ellipse_2_traits_2<K>::Point
typedef to K::Point_2.


Min_ellipse_2_traits_2<K>::Ellipse
internal type.

The Ellipse type provides the following access methods not required by the concept MinEllipse2Traits.

bool ellipse.is_circle ()
tests whether the ellipse is a circle.

void
ellipse.double_coefficients ( double &r,
double &s,
double &t,
double &u,
double &v,
double &w)
gives a double approximation of the ellipse's conic equation. If K is a Cartesian kernel, the ellipse is the set of all points (x,y) satisfying rx2+sy2+txy+ux+vy+w=0. In the Homogeneous case, the ellipse is the set of points (hx,hy,hw) satisfying r(hx)2+s(hy)2+t(hx)(hy)+u(hx)(hw)+v(hy)(hw)+w(hw)2=0.

Creation

Min_ellipse_2_traits_2<K> traits;
default constructor.


Min_ellipse_2_traits_2<K> traits ( Min_ellipse_2_traits_2<K>);
copy constructor.

See Also

CGAL::Min_ellipse_2<Traits>
MinEllipse2Traits