mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Fix documentation for beans.
This commit is contained in:
parent
4e1dd90549
commit
76df9d9a92
1 changed files with 10 additions and 6 deletions
|
@ -422,7 +422,10 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Number} The determinant of this transform
|
* The determinant of this transform.
|
||||||
|
*
|
||||||
|
* @type Number
|
||||||
|
* @bean
|
||||||
*/
|
*/
|
||||||
getDeterminant: function() {
|
getDeterminant: function() {
|
||||||
return this._a * this._d - this._b * this._c;
|
return this._a * this._d - this._b * this._c;
|
||||||
|
@ -439,11 +442,12 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the rotation angle of the matrix. If a non-uniform
|
* The rotation angle of the matrix. If a non-uniform rotation is applied as
|
||||||
* rotation is applied as a result of a shear() or scale() command,
|
* a result of a shear() or scale() command, undefined is returned, as the
|
||||||
* undefined is returned, as the resulting transformation cannot be
|
* resulting transformation cannot be expressed in one rotation angle.
|
||||||
* expressed in one rotation angle
|
*
|
||||||
* @return {Number} The rotation angle of the matrix
|
* @type Number
|
||||||
|
* @bean
|
||||||
*/
|
*/
|
||||||
getRotation: function() {
|
getRotation: function() {
|
||||||
var angle1 = -Math.atan2(this._b, this._d),
|
var angle1 = -Math.atan2(this._b, this._d),
|
||||||
|
|
Loading…
Reference in a new issue