diff --git a/files/en-us/web/api/dommatrix/multiplyself/index.md b/files/en-us/web/api/dommatrix/multiplyself/index.md index 1341b5bc5c26490..0f9e057ba2cb274 100644 --- a/files/en-us/web/api/dommatrix/multiplyself/index.md +++ b/files/en-us/web/api/dommatrix/multiplyself/index.md @@ -8,9 +8,9 @@ browser-compat: api.DOMMatrix.multiplySelf {{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}} -The **`multiplySelf()`** method of the {{domxref("DOMMatrix")}} interface multiplies a matrix by the matrix parameter, computing the dot product of the original matrix and the specified matrix: `A⋅B`. If no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is `0` _except_ the bottom-right corner and the element immediately above and to its left: `m33` and `m34`. These have the default value of `1`. +The **`multiplySelf()`** method of the {{domxref("DOMMatrix")}} interface multiplies a matrix by the`otherMatrix` parameter, computing the dot product of the original matrix and the specified matrix: `A⋅B`. If no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is `0` _except_ the bottom-right corner and the element immediately above and to its left: `m33` and `m34`. These have the default value of `1`. -To multiply a matrix without mutating it, see {{domxref("DOMMatrixReadOnly.multiply()")}} +To multiply a matrix without mutating it, see {{domxref("DOMMatrixReadOnly.multiply()")}}. ## Syntax diff --git a/files/en-us/web/api/dommatrix/premultiplyself/index.md b/files/en-us/web/api/dommatrix/premultiplyself/index.md index 310979bffbae905..1332be663a5d20a 100644 --- a/files/en-us/web/api/dommatrix/premultiplyself/index.md +++ b/files/en-us/web/api/dommatrix/premultiplyself/index.md @@ -8,7 +8,7 @@ browser-compat: api.DOMMatrix.preMultiplySelf {{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}} -The **`preMultiplySelf()`** method of the {{domxref("DOMMatrix")}} interface Modifies the matrix by pre-multiplying it with the specified `DOMMatrix`. This is equivalent to the dot product `B⋅A`, where matrix `A` is the source matrix and `B` is the matrix given as an input to the method. If no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is `0` _except_ the bottom-right corner and the element immediately above and to its left: `m33` and `m34`. These have the default value of `1`.git +The **`preMultiplySelf()`** method of the {{domxref("DOMMatrix")}} interface modifies the matrix by pre-multiplying it with the specified `DOMMatrix`. This is equivalent to the dot product `B⋅A`, where matrix `A` is the source matrix and `B` is the matrix given as an input to the method. If no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is `0` _except_ the bottom-right corner and the element immediately above and to its left: `m33` and `m34`. These have the default value of `1`. ## Syntax diff --git a/files/en-us/web/api/dommatrixreadonly/multiply/index.md b/files/en-us/web/api/dommatrixreadonly/multiply/index.md index 68529a969a436d9..43dc191867437e4 100644 --- a/files/en-us/web/api/dommatrixreadonly/multiply/index.md +++ b/files/en-us/web/api/dommatrixreadonly/multiply/index.md @@ -8,9 +8,9 @@ browser-compat: api.DOMMatrixReadOnly.multiply {{APIRef("Geometry Interfaces")}}{{AvailableInWorkers}} -The **`multiply()`** method of the {{domxref("DOMMatrixReadOnly")}} interface creates a new matrix being the result of the multiplication of the original matrix. The method returns a new {{domxref("DOMMatrix")}} created by computing the dot product of the source matrix and the specified matrix: `A⋅B`. If no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is `0` _except_ the bottom-right corner and the element immediately above and to its left: `m33` and `m34`. These have the default value of `1`. The original matrix is not modified. +The **`multiply()`** method of the {{domxref("DOMMatrixReadOnly")}} interface creates and returns a new matrix which is the dot product of the matrix and the `otherMatrix` parameter. If `otherMatrix` is omitted, the matrix is multiplied by a matrix in which every element is `0` _except_ the bottom-right corner and the element immediately above and to its left: `m33` and `m34`. These have the default value of `1`. The original matrix is not modified. -To mutate the matrix as you multiply it, see {{domxref("DOMMatrix.multiplySelf()")}} +To mutate the matrix as you multiply it, see {{domxref("DOMMatrix.multiplySelf()")}}. ## Syntax