Go to the documentation of this file.
81 return points_.size()-1;
93 else if (
lambda > 1 - SMALL)
104 while (param_[segmentI] <
lambda)
112 (
lambda - param_[segmentI])/(param_[segmentI+1] - param_[segmentI]);
123 return points_.first();
125 else if (
mu > 1 - SMALL)
127 return points_.last();
145 return points_.first();
147 else if (
segment > nSegments())
149 return points_.last();
const pointField & points() const
Return const-access to the control-points.
const dimensionedScalar mu
Atomic mass unit.
polyLine(const polyLine &)
Disallow default bitwise copy construct.
label nSegments() const
Return the number of line segments.
dimensioned< scalar > mag(const dimensioned< Type > &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
scalarList param_
The rational (0-1) cumulative parameter value for each point.
point position(const scalar) const
Return the point position corresponding to the curve parameter.
pointField points_
The control points or ends of each segments.
void setSize(const label)
Reset size of List.
An ordered pair of two objects of type <T> with first() and second() elements.
scalar lineLength_
The real line length.
void calcParam()
Precalculate the rational cumulative parameter value.
void size(const label)
Override size to be inconsistent with allocated storage.
label localParameter(scalar &lambda) const
Return the line segment and the local parameter [0..1].
dimensionedScalar lambda(laminarTransport.lookup("lambda"))
scalar length() const
Return the length of the curve.