Node: Line Constructors, Next: , Previous: Line Global Constants, Up: Line Reference


void Line (const Point& pos = origin, const Point& dir = origin) Default constructor
Creates a Line, setting position to pos, and direction to dir. If this function is called with no arguments, it creates a Line at the origin with no direction.
          Point p(2, 1, 2);
          Point d(-3, 3, 3.5);
          Line L0(p, d);
          Line L1 = p.get_line(d);

[Figure 104. Not displayed.]

Fig. 104.

void Line (const Line& l) Copy constructor
Creates a Line, making it a copy of l.