origin
, const Point& dir = origin
)Creates a
Line
, settingposition
to pos, anddirection
to dir. If this function is called with no arguments, it creates aLine
at theorigin
with no direction.Point p(2, 1, 2); Point d(-3, 3, 3.5); Line L0(p, d); Line L1 = p.get_line(d);
![]()
Fig. 104.