91 const bool notImplementedClosed =
false 100 const bool notImplementedClosed =
false scalar lineLength_
The real (total) line length.
scalar length() const noexcept
The length of the curve.
pointField points_
The control points or ends of each segments.
point position(const scalar) const
The point position corresponding to the curve parameter.
void calcParam()
Precalculate the rational cumulative parameter value and the line-length.
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
A series of straight line segments, which can also be interpreted as a series of control points for s...
scalarList param_
The rational (0-1) cumulative parameter value for each point.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
static tmp< pointField > concat(const point &start, const pointField &intermediate, const point &end)
Concatenate begin, intermediate and end points.
label localParameter(scalar &lambda) const
Return the line segment and the local parameter [0..1] corresponding to the global lambda [0...
label nSegments() const noexcept
The number of line segments.
A class for managing temporary objects.
polyLine(const pointField &points, const bool notImplementedClosed=false)
Construct from components.
const pointField & points() const noexcept
Return const-access to the control-points.