Next: , Previous: Matrix Inversion, Up: Transform Reference


19.6 Setting Values

— Function: void set_element (const unsigned short row, const unsigned short col, real r)

Sets the element of matrix indicated by the arguments to r.

          Transform t;
          t.set_element(0, 2, -3.45569);
          t.show("t:");
          -| t:
                1       0   -3.46       0
                0       1       0       0
                0       0       1       0
                0       0       0       1