mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -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() {
|
||||
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
|
||||
* rotation is applied as a result of a shear() or scale() command,
|
||||
* undefined is returned, as the resulting transformation cannot be
|
||||
* expressed in one rotation angle
|
||||
* @return {Number} The rotation angle of the matrix
|
||||
* The rotation angle of the matrix. If a non-uniform rotation is applied as
|
||||
* a result of a shear() or scale() command, undefined is returned, as the
|
||||
* resulting transformation cannot be expressed in one rotation angle.
|
||||
*
|
||||
* @type Number
|
||||
* @bean
|
||||
*/
|
||||
getRotation: function() {
|
||||
var angle1 = -Math.atan2(this._b, this._d),
|
||||
|
|
Loading…
Reference in a new issue