Skip to content
Snippets Groups Projects
Commit 951fbb65 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: add construct from floatVector for STLpoint (issue #491)

parent 4094e2c5
Branches
Tags
No related merge requests found
......@@ -47,7 +47,7 @@ namespace Foam
class STLpoint
:
public Vector<float>
public floatVector
{
public:
......@@ -58,28 +58,34 @@ public:
inline STLpoint()
{}
//- Construct from base class
inline STLpoint(const floatVector& v)
:
floatVector(v)
{}
//- Construct from components
inline STLpoint(float x, float y, float z)
:
Vector<float>(x, y, z)
floatVector(x, y, z)
{}
//- Construct from components
inline STLpoint(double x, double y, double z)
:
Vector<float>(float(x), float(y), float(z))
floatVector(float(x), float(y), float(z))
{}
//- Construct from point
inline STLpoint(const point& pt)
:
Vector<float>(float(pt.x()), float(pt.y()), float(pt.z()))
floatVector(float(pt.x()), float(pt.y()), float(pt.z()))
{}
//- Construct from istream
inline STLpoint(Istream& is)
:
Vector<float>(is)
floatVector(is)
{}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment