Skip to content

Commit

Permalink
Update files/en-us/web/api/dommatrixreadonly/inverse/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: wbamberg <[email protected]>
  • Loading branch information
estelle and wbamberg authored Dec 12, 2024
1 parent f7748fd commit c8afae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/dommatrixreadonly/inverse/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ browser-compat: api.DOMMatrixReadOnly.inverse

{{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}}

The **`inverse()`** method of the {{domxref("DOMMatrixReadOnly")}} interface creates a new matrix being the result of the inverse of the original matrix. If the matrix cannot be inverted, the new matrix's components are all set to `NaN` and its {{domxref("DOMMatrixReadOnly.is2D", "is2D")}} property is set to `false`. The original matrix is not changed.
The **`inverse()`** method of the {{domxref("DOMMatrixReadOnly")}} interface creates a new matrix which is the inverse of the original matrix. If the matrix cannot be inverted, the new matrix's components are all set to `NaN` and its {{domxref("DOMMatrixReadOnly.is2D", "is2D")}} property is set to `false`. The original matrix is not changed.

To mutate the matrix as you invert it, see {{domxref("DOMMatrix.invertSelf()")}}

Expand Down

0 comments on commit c8afae1

Please sign in to comment.