1
0
forked from 0ad/0ad
0ad/binaries/data/mods/public/maps/random/rmgen/point.js
historic_bruno b4503bb61e Simplifies random map output, see #782.
Changes random maps to XZ coordinates, matching the engine.
More documentation for rmgen library.

This was SVN commit r9271.
2011-04-16 04:04:06 +00:00

27 lines
663 B
JavaScript

/////////////////////////////////////////////////////////////////////
// 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);
}