ecs适配egret
This commit is contained in:
@@ -196,4 +196,9 @@ class Matrix2D {
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public toEgretMatrix(): egret.Matrix{
|
||||
let matrix = new egret.Matrix(this.m11, this.m12, this.m21, this.m22, this.m31, this.m32);
|
||||
return matrix;
|
||||
}
|
||||
}
|
||||
11
source/src/Math/Vector3.ts
Normal file
11
source/src/Math/Vector3.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
class Vector3 {
|
||||
public x: number;
|
||||
public y: number;
|
||||
public z: number;
|
||||
|
||||
constructor(x: number, y: number, z: number){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.z = z;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user