///////////////////////////////////////////////////////////////////// // PointXZ // // Class for representing 2D point in tile coordinates (X,Z) // ///////////////////////////////////////////////////////////////////// function PointXZ(x, z) { this.x = (x !== undefined ? x : 0); this.z = (z !== undefined ? z : 0); } ///////////////////////////////////////////////////////////////////// // Point3D // // Class for representing generic 3D point // ///////////////////////////////////////////////////////////////////// function Point3D(x, y, z) { this.x = (x !== undefined ? x : 0); this.y = (y !== undefined ? y : 0); this.z = (z !== undefined ? z : 0); }