plane: Make constructors explicit
Resolves bug-report http://bugs.openfoam.org/view.php?id=2284
This commit is contained in:
parent
164540eb3d
commit
0a75f7853c
1 changed files with 11 additions and 6 deletions
|
|
@ -126,23 +126,28 @@ public:
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from normal vector through the origin
|
//- Construct from normal vector through the origin
|
||||||
plane(const vector& normalVector);
|
explicit plane(const vector& normalVector);
|
||||||
|
|
||||||
//- Construct from normal vector and point in plane
|
//- Construct from normal vector and point in plane
|
||||||
plane(const point& basePoint, const vector& normalVector);
|
explicit plane(const point& basePoint, const vector& normalVector);
|
||||||
|
|
||||||
//- Construct from three points in plane
|
//- Construct from three points in plane
|
||||||
plane(const point& point1, const point& point2, const point& point3);
|
explicit plane
|
||||||
|
(
|
||||||
|
const point& point1,
|
||||||
|
const point& point2,
|
||||||
|
const point& point3
|
||||||
|
);
|
||||||
|
|
||||||
//- Construct from coefficients for the
|
//- Construct from coefficients for the
|
||||||
// plane equation: ax + by + cz + d = 0
|
// plane equation: ax + by + cz + d = 0
|
||||||
plane(const scalarList& C);
|
explicit plane(const scalarList& C);
|
||||||
|
|
||||||
//- Construct from dictionary
|
//- Construct from dictionary
|
||||||
plane(const dictionary& planeDict);
|
explicit plane(const dictionary& planeDict);
|
||||||
|
|
||||||
//- Construct from Istream. Assumes the base + normal notation.
|
//- Construct from Istream. Assumes the base + normal notation.
|
||||||
plane(Istream& is);
|
explicit plane(Istream& is);
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue