mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-21 18:42:00 -04:00
Rename Matrix#createInverse() to #inverted() and #createShiftless() to #shiftless().
This commit is contained in:
parent
d70fdb69d3
commit
b10454a83c
5 changed files with 6 additions and 6 deletions
src/basic
|
@ -618,7 +618,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
* @return {Matrix} The inverted matrix, or {@code null }, if the matrix is
|
||||
* singular
|
||||
*/
|
||||
createInverse: function() {
|
||||
inverted: function() {
|
||||
var det = this._getDeterminant();
|
||||
return det && Matrix.create(
|
||||
this._d / det,
|
||||
|
@ -629,7 +629,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
(this._c * this._tx - this._a * this._ty) / det);
|
||||
},
|
||||
|
||||
createShiftless: function() {
|
||||
shiftless: function() {
|
||||
return Matrix.create(this._a, this._c, this._b, this._d, 0, 0);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue