Two-Dimensional Line Segment MbLineSegment

The MbLineSegment class is declared in the cur_line_segment.h file.

The two-dimensional line segment MbLineSegment is defined by the start point MbCartPoint point1 and the end point MbCartPoint point2:

../../../../_images/O.3.3.1.png

In the PointOn( double & t, MbCartPoint & p) method the radius vector of the segment r is described by the vector function

\[\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 tmin = 0 corresponds to the start point of the segment point1, and the parameter tmax = 1 corresponds to the end point of the segment point2.