Ellipse Class Reference
To store and treat an ellipsoidal figure. More...
Inheritance diagram for Ellipse:
Public Member Functions | |
| Ellipse () | |
| Default constructor. More... | |
| Ellipse (Point< real_t > c, real_t a, real_t b, int code=1) | |
| Constructor with given ellipse data. More... | |
| real_t | getSignedDistance (const Point< real_t > &p) const |
| Return signed distance of a given point from the current ellipse. More... | |
| Ellipse & | operator+= (Point< real_t > a) |
Operator += More... | |
| Ellipse & | operator+= (real_t a) |
Operator *= More... | |
Public Member Functions inherited from Figure | |
| Figure () | |
| Default constructor. | |
| Figure (const Figure &f) | |
| Copy constructor. | |
| virtual | ~Figure () |
| Destructor. | |
| void | setCode (int code) |
| Choose a code for the domain defined by the figure. | |
| Figure & | operator= (const Figure &f) |
| Operator =. | |
| void | getSignedDistance (const Grid &g, Vect< real_t > &d) const |
| Calculate signed distance to current figure with respect to grid points. More... | |
| real_t | dLine (const Point< real_t > &p, const Point< real_t > &a, const Point< real_t > &b) const |
| Compute signed distance from a line. More... | |
Detailed Description
To store and treat an ellipsoidal figure.
Constructor & Destructor Documentation
| Ellipse | ( | ) |
Default constructor.
Constructs an ellipse with semimajor axis = 1, and semiminor axis = 1
Constructor with given ellipse data.
- Parameters
-
[in] c Coordinates of center [in] a Semimajor axis [in] b Semiminor axis [in] code Code to assign to the generated figure [Default: 1]
Member Function Documentation
Return signed distance of a given point from the current ellipse.
The computed distance is negative if p lies in the ellipse, positive if it is outside, and 0 on its boundary
- Parameters
-
[in] p Point<double> instance
Reimplemented from Figure.
Operator +=
Translate ellipse by a vector a
- Parameters
-
[in] a Vector defining the translation