Next: , Previous: Transform Operators, Up: Transform Reference


19.5 Matrix Inversion

const function: Transform inverse (void)
— Function: Transform inverse ([bool assign = false])

Returns a Transform T with a T.matrix that is the inverse of matrix. If assign==true, then matrix is set to its inverse.

In the const version, matrix remains unchanged. The second should only ever be called with true as its assign argument. If you're tempted call inverse(false), you might as well just leave out the argument, which issues a warning message, and calls the const version.