Node:Showing Points, Next:, Previous:Labelling Points, Up:Point Reference



Showing

void show ([string text = "", [char coords = 'w', [const bool do_persp = true, [const bool do_apply = true, [Focus* f = 0, [const unsigned short proj = Projections::persp, [const real factor = 1]]]]]]]) const function
Prints text followed by the values of a set of coordinates to standard output (stdout). The other arguments are similar to those used in the functions described in Returning Coordinates.
          Point P(1, 3, 5);
          P.rotate(15, 67, 98);
          P.show("P:");
          -| P: (-3.68621, -3.89112, 2.50421)
          

void show_transform ([string text = ""]) Function
Prints text to standard output (stdout), or "transform:", if text is the empty string (the default), and then calls transform.show().
          Point A(-1, 1, 1);
          Point B(13, 12, 6);
          Point Q(31, 17.31, 6);
          Q.rotate(A, B, 32);
          Q.show_transform("Q.transform:");
          -| Q.transform:
             Transform:
               0.935   0.212  -0.284       0
             -0.0749   0.902   0.426       0
               0.346  -0.377   0.859       0
              -0.336   0.687  -0.569       1