Skip to content

five-on-it / apps/client/src/ui/map-view / Projection

Interface: Projection ​

Defined in: apps/client/src/ui/map-view.ts:46

A projection of the ground onto a map: k pixels a metre, the pixel of an x and of a z, and back.

Properties ​

k ​

k: number

Defined in: apps/client/src/ui/map-view.ts:47


px ​

px: (x) => number

Defined in: apps/client/src/ui/map-view.ts:48

Parameters ​

x ​

number

Returns ​

number


pz ​

pz: (z) => number

Defined in: apps/client/src/ui/map-view.ts:49

Parameters ​

z ​

number

Returns ​

number


x ​

x: (px) => number

Defined in: apps/client/src/ui/map-view.ts:50

Parameters ​

px ​

number

Returns ​

number


z ​

z: (pz) => number

Defined in: apps/client/src/ui/map-view.ts:51

Parameters ​

pz ​

number

Returns ​

number