|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <eepicgeom.H>
Public Member Functions | |
| Thick_Ellipse () | |
| Thick_Ellipse (const Ellipse &p) | |
| Thick_Ellipse (const Point ¢er, const Geom_Number &hr, const Geom_Number &vr) | |
Public Member Functions inherited from Aleph::Ellipse | |
| Ellipse (Point center, const Geom_Number &hr, const Geom_Number &vr) | |
| Constructs an ellipse. | |
| Ellipse (const Ellipse &e)=default | |
| Copy constructor. | |
| Ellipse () | |
| Default constructor. | |
| bool | operator== (const Ellipse &e) const noexcept |
| Checks for exact equality. | |
| bool | operator!= (const Ellipse &e) const noexcept |
| Checks for inequality. | |
| const Point & | get_center () const |
| Gets the center point of the ellipse. | |
| const Geom_Number & | get_hradius () const |
| Gets the horizontal radius. | |
| const Geom_Number & | get_vradius () const |
| Gets the vertical radius. | |
| Geom_Number | area () const |
| Calculates the area of the ellipse. | |
| Geom_Number | perimeter () const |
| Approximates the perimeter of the ellipse. | |
| Point | sample (const Geom_Number &angle) const |
| Samples a point on the ellipse's boundary at a given angle. | |
| std::string | to_string () const |
| Returns a string representation of the ellipse. | |
| Point | highest_point () const |
| Gets the highest point on the ellipse boundary. | |
| Point | lowest_point () const |
| Gets the lowest point on the ellipse boundary. | |
| Point | leftmost_point () const |
| Gets the leftmost point on the ellipse boundary. | |
| Point | rightmost_point () const |
| Gets the rightmost point on the ellipse boundary. | |
| void | compute_tangents (Segment &s1, Segment &s2, const Geom_Number &m) const |
| Computes the two tangent segments to this ellipse with a given slope. | |
| bool | intersects_with (const Segment &s) const |
| Checks if a segment intersects the ellipse. | |
| bool | contains (const Point &p) const |
| Checks if a point lies inside or on the boundary of this ellipse. | |
| bool | contains_to (const Point &p) const |
| bool | intersects_with (const Point &p) const |
| Checks if a point lies exactly on the ellipse boundary. | |
| Segment | intersection_with (const Segment &sg) const |
| Computes the intersection segment between a line segment and this ellipse. | |
Public Member Functions inherited from Aleph::Geom_Object | |
| Geom_Object ()=default | |
| virtual | ~Geom_Object ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from Aleph::Ellipse | |
| static bool | is_clockwise () |
| Returns the orientation of the ellipse. | |
Definition at line 1264 of file eepicgeom.H.
|
inline |
Definition at line 1264 of file eepicgeom.H.
Definition at line 1264 of file eepicgeom.H.
|
inline |
Definition at line 1264 of file eepicgeom.H.