修复vector2 y=0赋值错误问题
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user