Description
The Inverted
property of the Matrix
struct provides the inverse of the current matrix instance. In matrix algebra, the inverse of a matrix is a matrix that, when multiplied with the original matrix, yields the identity matrix. This property is useful in various mathematical computations, particularly in graphics programming, where it is often necessary to reverse transformations.
Usage
To use the Inverted
property, simply access it on an instance of a Matrix
object. Ensure that the matrix is invertible; otherwise, the operation may not be valid. A matrix is invertible if its determinant is non-zero.
Example
Matrix matrix = new Matrix();
// Assume matrix is initialized and represents a valid transformation
Matrix inverseMatrix = matrix.Inverted;
// Use inverseMatrix for further calculations, such as reversing transformations