修复matrix2d的identity的获取方法。
This commit is contained in:
@@ -16,7 +16,7 @@ module es {
|
||||
* 返回标识矩阵
|
||||
*/
|
||||
public static get identity(): Matrix2D {
|
||||
return this._identity;
|
||||
return new Matrix2D(1, 0, 0, 1, 0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -71,8 +71,6 @@ module es {
|
||||
this.m22 = value.y;
|
||||
}
|
||||
|
||||
static _identity: Matrix2D = new Matrix2D(1, 0, 0, 1, 0, 0);
|
||||
|
||||
/**
|
||||
* 构建一个矩阵
|
||||
* @param m11
|
||||
|
||||
Reference in New Issue
Block a user