An object of the class Optimisation_ellipse_2<R> is an ellipse in the two-dimensional Euclidean plane . Its boundary splits into a bounded and an unbounded side. Note that the ellipse can be degenerate, i.e. it can be empty, equal to a single point or equal to a segment. By definition, an empty Optimisation_ellipse_2<R> has no boundary and no bounded side, i.e. its unbounded side equals the whole plane . A Optimisation_ellipse_2<R> equal to a single point or equal to a segment , resp., has no bounded side, its boundary is or , resp., and its unbounded side equals - or -, resp.
#include <CGAL/Optimisation_ellipse_2.h>
|
| Point type. |
|
| sets ellipse to the empty ellipse. | ||
|
| |||
sets ellipse to the ellipse equal to the single point p. | ||||
|
| |||
sets ellipse to the ellipse equal to the segment
connecting p and q. Precondition: p and q are distinct. | ||||
|
| |||
sets ellipse to the ellipse of smallest area through
p1, p2 and p3. Precondition: p1,p2,p3 are not collinear. | ||||
|
| |||
sets ellipse to the ellipse of smallest area through
p1, p2, p3 and p4. Precondition: p1,p2,p3,p4 are in convex position. | ||||
|
| |||
sets ellipse to the unique ellipse through
p1, p2, p3, p4 and p5. Precondition: There exists an ellipse through p1,p2,p3,p4,p5. |
|
| |
returns the number of boundary points defining ellipse. |
|
| |
returns true, iff ellipse and ellipse2 are equal, i.e. if both ellipses were constructed from the same set of points. | ||
|
| |
returns true, iff ellipse and ellipse2 are not equal. |
|
| |
returns ON_BOUNDED_SIDE, ON_BOUNDARY, or ON_UNBOUNDED_SIDE iff p lies properly inside, on the boundary of, or properly outside of ellipse, resp. | ||
|
| |
returns true, iff p lies properly inside ellipse. | ||
|
| |
returns true, iff p lies on the boundary of ellipse. | ||
|
| |
returns true, iff p lies properly outside of ellipse. | ||
|
| |
returns true, iff ellipse is empty (this implies degeneracy). | ||
|
| |
returns true, iff ellipse is degenerate, i.e. if ellipse is empty, equal to a single point or equal to a segment. |
|
| |
writes ellipse to output stream os. | ||
|
| |
reads ellipse from input stream is. |
#include <CGAL/IO/Window_stream.h>
|
| |
writes ellipse to window stream ws. |