修复vector2 y=0赋值错误问题

This commit is contained in:
yhh
2020-08-06 10:55:02 +08:00
parent 8e3bcc1257
commit d0199e357b
5 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ module es {
*/
constructor(x?: number, y?: number) {
this.x = x ? x : 0;
this.y = y ? y : this.x;
this.y = y != undefined ? y : this.x;
}
public static get zero() {