2011-04-16 06:04:06 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// 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)
|
2011-03-22 02:34:45 +01:00
|
|
|
{
|
|
|
|
this.x = (x !== undefined ? x : 0);
|
|
|
|
this.y = (y !== undefined ? y : 0);
|
2011-04-16 06:04:06 +02:00
|
|
|
this.z = (z !== undefined ? z : 0);
|
2011-03-22 02:34:45 +01:00
|
|
|
}
|