mirror of
https://github.com/photonstorm/phaser
synced 2025-02-26 04:17:08 +00:00
Added jsdocs
This commit is contained in:
parent
7e64b4d624
commit
c3ba80c4e5
1 changed files with 17 additions and 12 deletions
|
@ -15,12 +15,12 @@ var Class = require('../../utils/Class');
|
||||||
* @constructor
|
* @constructor
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @param {number} [a=1] - [description]
|
* @param {number} [a=1] - The Scale X value.
|
||||||
* @param {number} [b=0] - [description]
|
* @param {number} [b=0] - The Shear Y value.
|
||||||
* @param {number} [c=0] - [description]
|
* @param {number} [c=0] - The Shear X value.
|
||||||
* @param {number} [d=1] - [description]
|
* @param {number} [d=1] - The Scale Y value.
|
||||||
* @param {number} [tx=0] - [description]
|
* @param {number} [tx=0] - The Translate X value.
|
||||||
* @param {number} [ty=0] - [description]
|
* @param {number} [ty=0] - The Translate Y value.
|
||||||
*/
|
*/
|
||||||
var TransformMatrix = new Class({
|
var TransformMatrix = new Class({
|
||||||
|
|
||||||
|
@ -189,12 +189,12 @@ var TransformMatrix = new Class({
|
||||||
* @method Phaser.GameObjects.Components.TransformMatrix#transform
|
* @method Phaser.GameObjects.Components.TransformMatrix#transform
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @param {number} a - [description]
|
* @param {number} a - The Scale X value.
|
||||||
* @param {number} b - [description]
|
* @param {number} b - The Shear Y value.
|
||||||
* @param {number} c - [description]
|
* @param {number} c - The Shear X value.
|
||||||
* @param {number} d - [description]
|
* @param {number} d - The Scale Y value.
|
||||||
* @param {number} tx - [description]
|
* @param {number} tx - The Translate X value.
|
||||||
* @param {number} ty - [description]
|
* @param {number} ty - The Translate Y value.
|
||||||
*
|
*
|
||||||
* @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
|
* @return {Phaser.GameObjects.Components.TransformMatrix} This TransformMatrix.
|
||||||
*/
|
*/
|
||||||
|
@ -324,6 +324,11 @@ var TransformMatrix = new Class({
|
||||||
|
|
||||||
var matrix = this.matrix;
|
var matrix = this.matrix;
|
||||||
|
|
||||||
|
// a = scale X (1)
|
||||||
|
// b = shear Y (0)
|
||||||
|
// c = shear X (0)
|
||||||
|
// d = scale Y (1)
|
||||||
|
|
||||||
var a = matrix[0];
|
var a = matrix[0];
|
||||||
var b = matrix[1];
|
var b = matrix[1];
|
||||||
var c = matrix[2];
|
var c = matrix[2];
|
||||||
|
|
Loading…
Add table
Reference in a new issue