og/proj/cube

Source: cube.ts:5


Instance Methods

isCubeProj(proj: Proj): boolean

Returns true for the cube projections.

Parameters

  • proj (Proj) — Projection.

Returns

  • boolean

Static Fields

CubeProj: CubeProj

The cube of a common cube map: the planes of the faces are split evenly.

Other

CUBE_FACES

Center, east and north directions of the cube faces. The faces from CUBE_FRONT to CUBE_LEFT lie on the equator at longitudes 0, 90, 180 and -90.

The face and its side behind the N, E, S and W sides of each face.

CUBE_OPSIDE

Sides of the neighbors of a tile, see Segment.opside. First index is the face, second is the mask of the tile sides that lie on the edges of the face, a bit for each of {N,E,S,W}.

CUBE_NODE_ID_OFFSET

The root of a face has the node id of the offset plus the face. So the faces have no common ids.

CubeProj

Extends: Proj

Projection of a cube inflated to the ellipsoid. Native coordinates of a point: lon is the face index plus the position from west to east, lat is the position from south to north, both positions are from 0 to 1.

Parameters

  • code (string) — Projection code.
  • equiangular (boolean) — True when equal steps on a face are equal angles, false when they are equal distances on the plane of the face, as in a common cube map.

cubeEquiangular: CubeProj

The cube with tiles of about the same size all over the planet.