r3-legacy/src/game-lib-api-vector3.js

18 lines
314 B
JavaScript
Raw Normal View History

GameLib.D3.API.Vector3 = function ApiVector3(x, y, z) {
if (GameLib.D3.Utils.UndefinedOrNull(x)) {
x = 0;
}
this.x = x;
if (GameLib.D3.Utils.UndefinedOrNull(y)) {
y = 0;
}
this.y = y;
if (GameLib.D3.Utils.UndefinedOrNull(z)) {
z = 0;
}
this.z = z;
2016-11-29 12:54:25 +01:00
};