If text is not the empty
string
(the default), it is printed on a line of its own to standard output. Otherwise, ‘Line:’ is printed. Following this,Point::show()
is called onposition
anddirection
.Point p(1, -2, 3); Point d(-12.3, 21, 36.002); Line L0(p, d); L0.show("L0:"); -| L0: position: (1, -2, 3) direction: (-12.3, 21, 36.002) Line L1 = p.get_line(d); L1.show("L1:"); -| L1: position: (1, -2, 3) direction: (-13.3, 23, 33.002) Path q = L1.get_path(); q.show("q:"); -| q: fill_draw_value == 0 (1, -2, 3) -- (-12.3, 21, 36.002);