Tests this is greater than or equal to other.
Tests this is greater than other.
Returns true if this is compatible to the meshUnit.
the mesh unit, 1 or 5
true if this is compatible to the meshUnit
Tests this is less than or equal to other.
Tests this is less than other.
Returns the greatest MeshCoord instance less than this.
The mesh unit, 1 or 5.
The next down MeshCoord.
// Prints MeshCoord(first=0, second=0, third=0)
console.log(new MeshCoord(0, 0, 1).nextDown(1));
// Prints MeshCoord(first=0, second=0, third=9)
console.log(new MeshCoord(0, 1, 0).nextDown(1));
// Prints MeshCoord(first=0, second=7, third=9)
console.log(new MeshCoord(1, 0, 0).nextDown(1));
// Prints MeshCoord(first=0, second=0, third=0)
console.log(new MeshCoord(0, 0, 5).nextDown(5));
// Prints MeshCoord(first=0, second=0, third=5)
console.log(new MeshCoord(0, 1, 0).nextDown(5));
// Prints MeshCoord(first=0, second=7, third=5)
console.log(new MeshCoord(1, 0, 0).nextDown(5));
Returns the smallest MeshCoord instance greater than this.
The mesh unit, 1 or 5.
The next up MeshCoord.
// Prints MeshCoord(first=0, second=0, third=1)
console.log(new MeshCoord(0, 0, 0).nextUp(1));
// Prints MeshCoord(first=0, second=1, third=0)
console.log(new MeshCoord(0, 0, 9).nextUp(1));
// Prints MeshCoord(first=1, second=0, third=0)
console.log(new MeshCoord(0, 7, 9).nextUp(1));
// Prints MeshCoord(first=0, second=0, third=5)
console.log(new MeshCoord(0, 0, 0).nextUp(5));
// Prints MeshCoord(first=0, second=1, third=0)
console.log(new MeshCoord(0, 0, 5).nextUp(5));
// Prints MeshCoord(first=1, second=0, third=0)
console.log(new MeshCoord(0, 7, 5).nextUp(5));
StaticfromStaticfrom
Represents mesh coordinate, namely, discrete latitude and/or longitude.
This supports total ordering, and non-negative latitude and/or longitude only.
The coordinate has three digits,
first,secondandthird, thefirstvalues0to9, theseconddoes0to7and thethirddoes0to99inclusive.We note that the third digit takes either
0or5only on the mesh with MeshUnit.Example