Ellipse Class Reference
To store and treat an ellipsoidal figure. More...
Inheritance diagram for Ellipse:
Public Member Functions | |
| Ellipse () | |
| Default constructor. | |
| Ellipse (Point< double > c, double a, double b, int code=1) | |
| Constructor with given data. | |
| double | getSignedDistance (const Point< double > &p) const |
| Return signed distance of a given point from the current ellipse. | |
| Ellipse & | operator+= (Point< double > a) |
| Operator +=. | |
| Ellipse & | operator+= (double a) |
| Operator *=. | |
| void | setCode (int code) |
| Choose a code for the domain defined by the figure. | |
| void | getSignedDistance (const Grid &g, Vect< double > &d) const |
| Calculate signed distance to current figure with respect to grid points. | |
| double | dLine (const Point< double > &p, const Point< double > &a, const Point< double > &b) const |
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 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
| double getSignedDistance | ( | const Point< double > & | p | ) | const [virtual] |
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.
| Ellipse& operator+= | ( | double | a | ) |
Operator *=.
Scale ellipse by a factor a
| void getSignedDistance | ( | const Grid & | g, |
| Vect< double > & | d | ||
| ) | const [inherited] |
- OFELI
- Ellipse
Copyright © 1998-2012 Rachid Touzani