修复vector2 y=0赋值错误问题
This commit is contained in:
@@ -638,7 +638,7 @@ var es;
|
|||||||
this.x = 0;
|
this.x = 0;
|
||||||
this.y = 0;
|
this.y = 0;
|
||||||
this.x = x ? x : 0;
|
this.x = x ? x : 0;
|
||||||
this.y = y ? y : this.x;
|
this.y = y != undefined ? y : this.x;
|
||||||
}
|
}
|
||||||
Object.defineProperty(Vector2, "zero", {
|
Object.defineProperty(Vector2, "zero", {
|
||||||
get: function () {
|
get: function () {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -638,7 +638,7 @@ var es;
|
|||||||
this.x = 0;
|
this.x = 0;
|
||||||
this.y = 0;
|
this.y = 0;
|
||||||
this.x = x ? x : 0;
|
this.x = x ? x : 0;
|
||||||
this.y = y ? y : this.x;
|
this.y = y != undefined ? y : this.x;
|
||||||
}
|
}
|
||||||
Object.defineProperty(Vector2, "zero", {
|
Object.defineProperty(Vector2, "zero", {
|
||||||
get: function () {
|
get: function () {
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -15,7 +15,7 @@ module es {
|
|||||||
*/
|
*/
|
||||||
constructor(x?: number, y?: number) {
|
constructor(x?: number, y?: number) {
|
||||||
this.x = x ? x : 0;
|
this.x = x ? x : 0;
|
||||||
this.y = y ? y : this.x;
|
this.y = y != undefined ? y : this.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static get zero() {
|
public static get zero() {
|
||||||
|
|||||||
Reference in New Issue
Block a user