Next: Returning Information for Transforms, Previous: Setting Values Transforms, Up: Transform Reference
Returns
trueif*thisis the identityTransform, otherwisefalse. This function has both aconstand a non-constversion. In the non-constversion,clean()is called on*thisbefore comparing the elements ofmatrixwith 1 (for the main diagonal) and 0 (for the other elements). In theconstversion,*thisis copied,clean()is called on the copy, and the elements of the copy'smatrixare compared with 0 and 1.
const function: real get_element (const unsigned short row, const unsigned short col)Returns the value stored in the element of
matrixindicated by the arguments.Transform t; t.shift(1, 2, 3); t.scale(2.5, -1.2, 4); t.rotate(30, 15, 60); t.show("t:"); -| t: 1.21 2.09 0.647 0 0.822 -0.654 0.58 0 -2.18 0.224 3.35 0 -3.69 1.45 11.8 1 cout << t.get_element(2, 1); -| 0.224