Target, source arg order for make* transform functions

This commit is contained in:
Tim Schaub
2018-11-17 16:28:10 +01:00
parent c169fec4a8
commit 5d528dca3b
7 changed files with 9 additions and 10 deletions

View File

@@ -222,12 +222,12 @@ export function invert(source) {
/**
* Invert the given transform.
* @param {!Transform} source The source transform to invert.
* @param {!Transform} target Transform to be set as the inverse of
* the source transform.
* @param {!Transform} source The source transform to invert.
* @return {!Transform} The inverted (target) transform.
*/
export function makeInverse(source, target) {
export function makeInverse(target, source) {
const det = determinant(source);
assert(det !== 0, 32); // Transformation matrix cannot be inverted