.. role:: blue :class: blue .. role:: bfit :class: bfit Two-Dimensional Line Segment MbLineSegment ========================================== .. _MbLineSegment_Two-Dimensional_Straight_Line_Segment_: .. kernel version: 118061 The :blue:`MbLineSegment` class is declared in the *cur_line_segment.h* file. The two-dimensional line segment :blue:`MbLineSegment` is defined by the start point :ref:`MbCartPoint ` **point1** and the end point :ref:`MbCartPoint ` **point2**: .. figure:: /MODELER/TWO-DIMENSIONAL_CURVES/pictures/O.3.3.1.png :width: 12cm :align: center In the :blue:`PointOn`\( double & *t*, :ref:`MbCartPoint ` & :bfit:`p`) method the radius vector of the segment :bfit:`r` is described by the vector function .. math:: \mathbf{r}(t) = (1 - t) \cdot \mathbf{point1} + t \cdot \mathbf{point2} The parameter domain of the segment lies between zero and one. The parameter *t*\ :subscript:`min` = 0 corresponds to the start point of the segment **point1**, and the parameter *t*\ :subscript:`max` = 1 corresponds to the end point of the segment **point2**.