29#include <boost/python.hpp>
30#include <boost/python/implicit.hpp>
31#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
51using namespace boost::python;
54 class_<Geom::Ellipse>(
"Ellipse", init<double, double, double, double, double>())
55 .def(init<double, double, double, double, double, double>())
57 .def(init<Geom::Circle>())
Defines the different types of exceptions that 2geom can throw.
Cartesian point / 2D vector and related operations.
pair< double, double > Point
3x3 matrix representing an affine transformation.
Set of points with a constant sum of distances from two foci.
Angle rotationAngle() const
Get the angle the X ray makes with the +X axis.
void fit(std::vector< Point > const &points)
Create an ellipse passing through the specified points At least five points have to be specified.
Coord ray(Dim2 d) const
Get one ray of the ellipse.
void setCoefficients(double A, double B, double C, double D, double E, double F)
Set an ellipse by solving its implicit equation.
Two-dimensional point that doubles as a vector.
Lifts one dimensional objects into 2D.
Various utility functions.
void(Geom::Ellipse::* ellipse_set2)(double, double, double, double, double)
std::vector< Geom::Coord >(Geom::Ellipse::* ellipse_coefficients)() const
void(Geom::Ellipse::* ellipse_set1)(Geom::Point const &, Geom::Point const &, double)