# gizgame/earth

Universal real-Earth geography, NASA Blue Marble atlas, interactive 3D Earth globe, and coastal PBR heightfield. Single source of truth for WGS84 projection, great-circle routes, real topography elevation, and coastal harbor sculpting.

```gizlang
import * as Earth from "gizgame/earth";
```

## Types

### `GeoPoint`

```gizlang
type GeoPoint = { lat: f64; lon: f64; }
```

A geographic coordinate in WGS84 degrees (latitude -90..+90 north, longitude -180..+180 east).

- `lat`: `f64`
- `lon`: `f64`

### `EarthPin`

```gizlang
type EarthPin = { id: i64; label: string; lat: f64; lon: f64; x: f64; z: f64; color: Vec<f64>; priority: f64; selected: bool; }
```

A named coastal port or strategic hub anchored on real Earth coordinates.

- `id`: `i64`
- `label`: `string`
- `lat`: `f64`
- `lon`: `f64`
- `x`: `f64`
- `z`: `f64`
- `color`: `Vec<f64>`
- `priority`: `f64`
- `selected`: `bool`

### `EarthTopology`

```gizlang
class EarthTopology { width: i64 = 0; height: i64 = 0; samples: Vec<f64> = []; loaded: bool = false; ensureLoaded(g: Game): bool throws string { if (this.loaded) { return true; } if (!g.has(EARTH_TOPO)) { g.ask([EARTH_TOPO]); return false; } const raw = Image.rgba(Image.decode(g.file(EARTH_TOPO), 1024)); this.width = raw.width; this.height = raw.height; const count = raw.width*raw.height; let vals: Vec<f64> = []; for (const i of range(0, count)) { vals.push(f64(raw.pixels[i*4])/255.0); } this.samples = vals; this.loaded = true; return true; } elevation(lat: f64, lon: f64): f64 { if (!this.loaded || this.width <= 1 || this.height <= 1) { return 0.0; } const u = (((lon + 180.0)/360.0) % 1.0 + 1.0) % 1.0; const v = Math.max(0.0, Math.min(1.0, (90.0 - lat)/180.0)); const fx = u*f64(this.width - 1); const fy = v*f64(this.height - 1); const x0 = i64(Math.floor(fx)); const y0 = i64(Math.floor(fy)); const x1 = (x0 + 1) % this.width; const y1 = Math.minI64(this.height - 1, y0 + 1); const tx = fx - f64(x0); const ty = fy - f64(y0); const s00 = this.samples[y0*this.width + x0]; const s10 = this.samples[y0*this.width + x1]; const s01 = this.samples[y1*this.width + x0]; const s11 = this.samples[y1*this.width + x1]; const top = s00 + (s10 - s00)*tx; const bot = s01 + (s11 - s01)*tx; return top + (bot - top)*ty; } isLand(lat: f64, lon: f64): bool { return this.elevation(lat, lon)> 0.045; } }
```

Real-Earth elevation sampler backed by NASA SRTM/GEBCO earth-topology.png (decoded once, cached in memory).

- `width`: `i64`
- `height`: `i64`
- `samples`: `Vec<f64>`
- `loaded`: `bool`

### `EarthAtlas`

```gizlang
class EarthAtlas { globeMode: bool = false; rotLon: f64 = -10.0; rotLat: f64 = 24.0; targetLon: f64 = -10.0; targetLat: f64 = 24.0; zoom: f64 = 1.0; autoSpin: bool = true; selectedPin: i64 = -1; private dragging: bool = false; private lastPtrX: f64 = 0.0; private lastPtrY: f64 = 0.0; focus(lat: f64, lon: f64): void { this.targetLat = Math.max(-72.0, Math.min(72.0, lat)); this.targetLon = lon; this.autoSpin = false; } step(dt: f64): void { if (!this.globeMode) { return; } if (this.autoSpin && !this.dragging) { this.targetLon = ((this.targetLon + dt*5.5 + 180.0) % 360.0) - 180.0; } let dLon = this.targetLon - this.rotLon; while (dLon> 180.0) { dLon - = 360.0; } while (dLon <-180.0) { dLon + = 360.0; } const k = Math.min(1.0, dt*6.5); this.rotLon = ((this.rotLon + dLon*k + 540.0) % 360.0) - 180.0; this.rotLat + = (this.targetLat - this.rotLat)*k; } handleDrag(h: Hud, cx0: f64, cy0: f64, cw: f64, ch: f64): void throws string { if (!this.globeMode) { this.dragging = false; return; } const ptr = h.game.pointer(); if (!ptr.seen || ptr.width <= 0.0 || ptr.height <= 0.0) { this.dragging = false; return; } const px = ptr.x/ptr.width*h.width; const py = ptr.y/ptr.height*h.height; const inside = px> = cx0 && px <= cx0+cw && py> = cy0 && py <= cy0+ch; if (ptr.held && inside) { if (!this.dragging) { this.dragging = true; this.lastPtrX = px; this.lastPtrY = py; this.autoSpin = false; } else { const dx = px - this.lastPtrX; const dy = py - this.lastPtrY; this.lastPtrX = px; this.lastPtrY = py; if (Math.abs(dx) + Math.abs(dy)> 0.5) { this.targetLon = ((this.targetLon - dx*0.42 + 540.0) % 360.0) - 180.0; this.targetLat = Math.max(-72.0, Math.min(72.0, this.targetLat + dy*0.35)); this.rotLon = this.targetLon; this.rotLat = this.targetLat; } } } else { this.dragging = false; } } projectGlobe(lat: f64, lon: f64, gcx: f64, gcy: f64, gr: f64): Vec<f64> { const latR = lat*Math.PI/180.0; const lonR = (lon - this.rotLon)*Math.PI/180.0; const cLatR = this.rotLat*Math.PI/180.0; const cosLat = Math.cos(latR); const sinLat = Math.sin(latR); const cosCLat = Math.cos(cLatR); const sinCLat = Math.sin(cLatR); const cosLon = Math.cos(lonR); const sinLon = Math.sin(lonR); const x = cosLat*sinLon; const y = cosCLat*sinLat - sinCLat*cosLat*cosLon; const z = sinCLat*sinLat + cosCLat*cosLat*cosLon; return [gcx + x*gr, gcy - y*gr, z]; } draw(h: Hud, cx0: f64, cy0: f64, cw: f64, ch: f64, pins: Vec<EarthPin>, routes: Vec<Vec<i64>>, discoveries: Vec<{ lat: f64; lon: f64; found: bool; }>, playerGeo: GeoPoint, time: f64, isKo: bool): string throws string { let clicked = ""; const hasBlueMarble = h.imageReady(EARTH_ALBEDO); if (!this.globeMode) { h.panel(cx0, cy0, cw, ch, [0.02, 0.07, 0.15, 0.98], 12.0, [0.38, 0.74, 1.0, 0.34]); if (hasBlueMarble) { const uv = h.sprites.image(EARTH_ALBEDO); h.canvas.sprite(uv, cx0 + cw*0.5, cy0 + ch*0.5, cw - 4.0, ch - 4.0, 0.0, [0.96, 0.98, 1.0, 0.96]); h.box(cx0 + 2.0, cy0 + 2.0, cw - 4.0, ch - 4.0, [0.02, 0.06, 0.14, 0.18]); } const mapX = (lon: f64): f64 => cx0 + 2.0 + (((lon + 180.0)/360.0) % 1.0)*(cw - 4.0); const mapY = (lat: f64): f64 => cy0 + 2.0 + Math.max(0.02, Math.min(0.98, (90.0 - lat)/180.0))*(ch - 4.0); for (const gl of [-120.0, -60.0, 0.0, 60.0, 120.0]) { h.box(mapX(gl), cy0 + 2.0, 1.0, ch - 4.0, [0.75, 0.90, 1.0, 0.12]); } for (const gt of [-60.0, -30.0, 0.0, 30.0, 60.0]) { const isEq = Math.abs(gt) <1.0; h.box(cx0 + 2.0, mapY(gt), cw - 4.0, 1.0, isEq ? [1.0, 0.84, 0.38, 0.28]: [0.75, 0.90, 1.0, 0.12]); } for (const pair of routes) { if (pair[0]> = pins.length || pair[1]> = pins.length) { continue; } const pa = pins[pair[0]]; const pb = pins[pair[1]]; const arc = greatCircle({ lat: pa.lat, lon: pa.lon }, { lat: pb.lat, lon: pb.lon }, 10); for (let k = 1; k <arc.length; k + = 1) { const prev = arc[k-1]; const cur = arc[k]; if (Math.abs(cur.lon - prev.lon)> 150.0) { continue; } h.card(mapX(cur.lon)-1.5, mapY(cur.lat)-1.5, 3.0, 3.0, [1.0, 0.86, 0.44, 0.52], 1.5); } } for (const dc of discoveries) { const dx = mapX(dc.lon); const dy = mapY(dc.lat); h.card(dx-3.0, dy-3.0, 6.0, 6.0, dc.found ? [1.0, 0.88, 0.28, 1.0]: [0.80, 0.90, 1.0, 0.55], 3.0); } let candidates: Vec<LabelBox> = []; for (const pt of pins) { const pxM = mapX(pt.lon); const pyM = mapY(pt.lat); const tw = h.measure(pt.label, 10.0, true) + 10.0; const lx = Math.max(cx0 + tw*0.5 + 4.0, Math.min(cx0 + cw - tw*0.5 - 4.0, pxM)); const ly = Math.max(cy0 + 10.0, Math.min(cy0 + ch - 12.0, pyM + 14.0)); candidates.push({ id: pt.id, text: pt.label, x: lx, y: ly, w: tw, h: 14.0, priority: pt.priority + (pt.selected ? 200.0: 0.0) }); } const kept = h.declutter(candidates, 3.0); for (const pt of pins) { const pxM = mapX(pt.lon); const pyM = mapY(pt.lat); const over = h.hovered(pxM-20.0, pyM-16.0, 40.0, 32.0); if (over || pt.selected) { h.card(pxM-10.0, pyM-10.0, 20.0, 20.0, [pt.color[0], pt.color[1], pt.color[2], 0.34], 10.0); } h.card(pxM-6.0, pyM-6.0, 12.0, 12.0, [0.02, 0.05, 0.10, 0.88], 6.0); h.card(pxM-4.2, pyM-4.2, 8.4, 8.4, pt.color, 4.2); const key = `V_SAIL_${pt.id }`; h.press(key, pxM-20.0, pyM-16.0, 40.0, 32.0); if (h.clicked(key)) { clicked = key; this.selectedPin = pt.id; } } for (const lb of kept) { h.card(lb.x - lb.w*0.5, lb.y - lb.h*0.5, lb.w, lb.h, [0.02, 0.06, 0.12, 0.82], 4.5); h.text(lb.text, lb.x, lb.y - 5.5, 10.0, [0.96, 0.99, 1.0, 0.98], 0.5, true); } const fx = mapX(playerGeo.lon); const fy = mapY(playerGeo.lat); const pGlow = 16.0 + 3.5*Math.sin(time*5.0); h.card(fx-pGlow*0.5, fy-pGlow*0.5, pGlow, pGlow, [0.22, 0.94, 1.0, 0.36], pGlow*0.5); h.card(fx-5.0, fy-5.0, 10.0, 10.0, [0.28, 0.98, 1.0, 1.0], 5.0); const crX = cx0 + 34.0; const crY = cy0 + ch - 34.0; h.panel(crX-18.0, crY-18.0, 36.0, 36.0, [0.03, 0.08, 0.16, 0.82], 18.0, [1.0, 0.84, 0.38, 0.44]); h.box(crX-10.0, crY-0.5, 20.0, 1.0, [1.0, 0.84, 0.38, 0.55]); h.box(crX-0.5, crY-10.0, 1.0, 20.0, [1.0, 0.84, 0.38, 0.55]); h.text("N", crX, crY-17.0, 9.0, [1.0, 0.88, 0.42, 0.95], 0.5, true); return clicked; } this.handleDrag(h, cx0, cy0, cw, ch); h.panel(cx0, cy0, cw, ch, [0.015, 0.025, 0.06, 0.98], 12.0, [0.38, 0.74, 1.0, 0.34]); for (const s of range(0, 48)) { const sx = cx0 + 12.0 + Math.hash2(s, 7, 19)*(cw - 24.0); const sy = cy0 + 12.0 + Math.hash2(s, 23, 41)*(ch - 24.0); const tw = 0.35 + 0.55*Math.sin(time*1.8 + f64(s)*1.7); const sz = s % 5 === 0 ? 2.4: 1.5; h.card(sx, sy, sz, sz, [0.85, 0.92, 1.0, tw], sz*0.5); } const gcx = cx0 + cw*0.5; const gcy = cy0 + ch*0.5; const gr = Math.min(cw, ch)*0.43*this.zoom; h.canvas.light(gcx, gcy, gr*2.65, [0.22, 0.62, 1.0, 0.28]); h.card(gcx - gr - 4.0, gcy - gr - 4.0, (gr + 4.0)*2.0, (gr + 4.0)*2.0, [0.32, 0.74, 1.0, 0.22], gr + 4.0); h.card(gcx - gr, gcy - gr, gr*2.0, gr*2.0, [0.03, 0.12, 0.28, 0.98], gr); if (hasBlueMarble) { const uv = h.sprites.image(EARTH_ALBEDO); const u0 = uv[0]; const v0 = uv[1]; const du = uv[2]; const dv = uv[3]; const cols = 56; const rows = 44; const cLatR = this.rotLat*Math.PI/180.0; const sinCL = Math.sin(cLatR); const cosCL = Math.cos(cLatR); for (const ri of range(0, rows)) { const ny0 = -0.992 + 1.984*f64(ri)/f64(rows); const ny1 = -0.992 + 1.984*f64(ri+1)/f64(rows); const nyM = (ny0 + ny1)*0.5; const yEdge = Math.max(Math.abs(ny0), Math.abs(ny1)); if (yEdge> = 0.996) { continue; } const rowHalfX = Math.sqrt(Math.max(0.0, 0.994*0.994 - yEdge*yEdge)); if (rowHalfX <0.04) { continue; } for (const ci of range(0, cols)) { const f0 = -1.0 + 2.0*f64(ci)/f64(cols); const f1 = -1.0 + 2.0*f64(ci+1)/f64(cols); const nx0 = f0*rowHalfX; const nx1 = f1*rowHalfX; const nxM = (nx0 + nx1)*0.5; const nz2 = 1.0 - nxM*nxM - nyM*nyM; if (nz2 <= 0.012) { continue; } const nz = Math.sqrt(nz2); const sinLat = Math.max(-1.0, Math.min(1.0, cosCL*(-nyM) + sinCL*nz)); const lat = Math.asin(sinLat)*180.0/Math.PI; const dLon = Math.atan2(nxM, cosCL*nz - sinCL*(-nyM))*180.0/Math.PI; const lon = (((this.rotLon + dLon + 180.0) % 360.0) + 360.0) % 360.0; const texU = lon/360.0; const texV = Math.max(0.0, Math.min(1.0, (90.0 - lat)/180.0)); const cellW = (nx1 - nx0)*gr + 0.65; const cellH = (ny1 - ny0)*gr + 0.65; const sx = gcx + nxM*gr; const sy = gcy + nyM*gr; const limb = Math.pow(1.0 - nz, 2.2)*0.22; const sunDot = Math.max(0.30, Math.min(1.06, nxM*(-0.35) + (-nyM)*0.25 + nz*0.92)); const uSpan = du/(f64(cols)*1.5); const vSpan = dv/(f64(rows)*1.4); h.canvas.sprite([u0 + Math.min(du - uSpan, texU*du), v0 + Math.min(dv - vSpan, texV*dv), uSpan, vSpan], sx, sy, cellW, cellH, 0.0, [Math.min(1.0, sunDot + limb*0.4), Math.min(1.0, sunDot*0.99 + limb*0.7), Math.min(1.0, sunDot*1.02 + limb*1.2), 1.0]); } } } h.canvas.sprite(h.sprites.icon("ring"), gcx, gcy, gr*2.02, gr*2.02, 0.0, [0.36, 0.78, 1.0, 0.68]); h.canvas.sprite(h.sprites.icon("ring"), gcx, gcy, gr*2.07, gr*2.07, 0.0, [0.16, 0.48, 0.92, 0.28]); for (const pair of routes) { if (pair[0]> = pins.length || pair[1]> = pins.length) { continue; } const pa = pins[pair[0]]; const pb = pins[pair[1]]; const arc = greatCircle({ lat: pa.lat, lon: pa.lon }, { lat: pb.lat, lon: pb.lon }, 14); for (const wp of arc) { const pr = this.projectGlobe(wp.lat, wp.lon, gcx, gcy, gr*1.01); if (pr[2]> 0.06) { h.card(pr[0]-1.5, pr[1]-1.5, 3.0, 3.0, [1.0, 0.88, 0.46, 0.45 + pr[2]*0.45], 1.5); } } } let gCandidates: Vec<LabelBox> = []; for (const pt of pins) { const pr = this.projectGlobe(pt.lat, pt.lon, gcx, gcy, gr*1.02); if (pr[2] <= 0.08) { continue; } const pxM = pr[0]; const pyM = pr[1]; const over = h.hovered(pxM-18.0, pyM-16.0, 36.0, 32.0); if (over || pt.selected) { h.card(pxM-11.0, pyM-11.0, 22.0, 22.0, [pt.color[0], pt.color[1], pt.color[2], 0.38], 11.0); } h.card(pxM-6.0, pyM-6.0, 12.0, 12.0, [0.02, 0.05, 0.10, 0.90], 6.0); h.card(pxM-4.2, pyM-4.2, 8.4, 8.4, pt.color, 4.2); const key = `V_SAIL_${pt.id }`; h.press(key, pxM-18.0, pyM-16.0, 36.0, 32.0); if (h.clicked(key)) { clicked = key; this.selectedPin = pt.id; this.focus(pt.lat, pt.lon); } const tw = h.measure(pt.label, 10.0, true) + 10.0; gCandidates.push({ id: pt.id, text: pt.label, x: pxM, y: pyM + 14.0, w: tw, h: 14.0, priority: pt.priority + pr[2]*12.0 + (pt.selected ? 200.0: 0.0) }); } for (const lb of h.declutter(gCandidates, 3.0)) { h.card(lb.x - lb.w*0.5, lb.y - lb.h*0.5, lb.w, lb.h, [0.02, 0.06, 0.12, 0.84], 4.5); h.text(lb.text, lb.x, lb.y - 5.5, 10.0, [0.96, 0.99, 1.0, 0.98], 0.5, true); } const fp = this.projectGlobe(playerGeo.lat, playerGeo.lon, gcx, gcy, gr*1.03); if (fp[2]> 0.04) { const pGlow = 16.0 + 3.5*Math.sin(time*5.0); h.card(fp[0]-pGlow*0.5, fp[1]-pGlow*0.5, pGlow, pGlow, [0.22, 0.94, 1.0, 0.38], pGlow*0.5); h.card(fp[0]-5.0, fp[1]-5.0, 10.0, 10.0, [0.28, 0.98, 1.0, 1.0], 5.0); } const gHint = isKo ? "드래그하여 지구본 회전 · 항구 클릭 시 즉시 출항": "Drag to Spin 3D Globe · Click any Port to Sail"; h.text(gHint, cx0 + 14.0, cy0 + ch - 20.0, 11.0, [0.72, 0.86, 1.0, 0.82], 0.0, false); return clicked; } }
```

Interactive 3D Earth Globe & Satellite Atlas controller with smooth focus easing and label decluttering.

- `globeMode`: `bool`
- `rotLon`: `f64`
- `rotLat`: `f64`
- `targetLon`: `f64`
- `targetLat`: `f64`
- `zoom`: `f64`
- `autoSpin`: `bool`
- `selectedPin`: `i64`
- `dragging`: `bool`
- `lastPtrX`: `f64`
- `lastPtrY`: `f64`

## Functions

### `latLonToUnit`

```gizlang
function latLonToUnit(lat: f64, lon: f64, r: f64 = 1.0): Point3
```

Converts WGS84 (LAT, LON) into a unit 3D sphere vector of radius R (matching NASA equirectangular UV).

Effects: fail.

### `unitToLatLon`

```gizlang
function unitToLatLon(p: Point3): GeoPoint
```

Converts a 3D unit sphere point P back into WGS84 (lat, lon) degrees.

Effects: fail.

### `latLonToWorld`

```gizlang
function latLonToWorld(lat: f64, lon: f64): Point2
```

Maps WGS84 (LAT, LON) to 3D sailing/world plane (x east, z south), centered at Lisbon = (0, 0).

### `worldToLatLon`

```gizlang
function worldToLatLon(x: f64, z: f64): GeoPoint
```

Maps 3D sailing/world plane (X, Z) back to WGS84 (lat, lon).

### `greatCircle`

```gizlang
function greatCircle(a: GeoPoint, b: GeoPoint, steps: i64 = 12): Vec<GeoPoint>
```

Computes spherical great-circle intermediate waypoints between WGS84 points A and B.

Effects: fail, alloc.

### `earthCoastalHeight`

```gizlang
function earthCoastalHeight(x: f64, z: f64, anchors: Vec<Point2>, topo?: EarthTopology): f64
```

Canonical AAA coastal & real-Earth PBR terrain heightfield at world (X, Z), shared as SSOT by Map3D chunk streaming,
physics colliders, building placement, and port navigation.
Sculpted around every port anchor:
  - Deep navigable ocean basin (-8.5m) on the seaward (+z) side where ships spawn & sail
  - Sheltered golden sandy harbor crescent beach (0.0m..+1.8m)
  - Terraced green harbor town plateau (+2.4m..+3.8m) for medieval buildings & plaza
  - Dramatic eroded rocky coastal headland hills (+6m..+24m) behind the town (-z)
  - Real NASA Earth landmass relief rising organically on distant coastlines!

Effects: fail, read.

## Methods

### `EarthTopology.ensureLoaded`

```gizlang
ensureLoaded(g: Game): bool throws string
```

Attempts to decode earth/earth-topology.png from GAME once available without blocking.

Effects: fail, read, write, console, io, alloc.

### `EarthTopology.elevation`

```gizlang
elevation(lat: f64, lon: f64): f64
```

Bilinear real-Earth normalized elevation in [0, 1] at WGS84 (LAT, LON). 0.0 is sea level, >0.05 is land.

Effects: fail, read.

### `EarthTopology.isLand`

```gizlang
isLand(lat: f64, lon: f64): bool
```

Returns true when WGS84 (LAT, LON) lies on a real Earth landmass.

Effects: fail, read.

### `EarthAtlas.focus`

```gizlang
focus(lat: f64, lon: f64): void
```

Smoothly rotates the 3D globe toward WGS84 (LAT, LON) using shortest-angle delta.

Effects: fail, read, write.

### `EarthAtlas.step`

```gizlang
step(dt: f64): void
```

Advances smooth camera focus easing and gentle idle spin.

Effects: fail, read, write.

### `EarthAtlas.handleDrag`

```gizlang
handleDrag(h: Hud, cx0: f64, cy0: f64, cw: f64, ch: f64): void throws string
```

Handles pointer dragging to spin the 3D Earth globe smoothly.

Effects: fail, read, write, console, io, alloc.

### `EarthAtlas.projectGlobe`

```gizlang
projectGlobe(lat: f64, lon: f64, gcx: f64, gcy: f64, gr: f64): Vec<f64>
```

Projects WGS84 (LAT, LON) onto the orthographic 3D globe viewport centered at (GCX, GCY) with radius GR. Returns [sx, sy, facingZ].

Effects: fail, read, alloc.

### `EarthAtlas.draw`

```gizlang
draw(h: Hud, cx0: f64, cy0: f64, cw: f64, ch: f64, pins: Vec<EarthPin>, routes: Vec<Vec<i64>>, discoveries: Vec<{ lat: f64; lon: f64; found: bool; }>, playerGeo: GeoPoint, time: f64, isKo: bool): string throws string
```

Renders the complete NASA Blue Marble Satellite World Map OR Interactive 3D Earth Globe inside (CX0, CY0, CW, CH),
with real great-circle routes, faction beacons, player ship marker, and priority AABB label decluttering.
Returns the action key of any clicked pin ("V_SAIL_<id>") or "".

Effects: fail, read, write, console, io, alloc.

## Constants

### `EARTH_ALBEDO`

```gizlang
const EARTH_ALBEDO: string = "earth/earth-blue-marble.jpg"
```

Canonical asset paths pinned in assets.lock for NASA Blue Marble imagery and Earth topography.

### `EARTH_TOPO`

```gizlang
const EARTH_TOPO: string = "earth/earth-topology.png"
```

### `EARTH_WORLD_ORIGIN_LON`

```gizlang
const EARTH_WORLD_ORIGIN_LON: f64 = -9.14
```

World-space scale for Earth-scale sailing/flight worlds: ~6000m across 180 degrees east-west, ~2600m north-south.

### `EARTH_WORLD_ORIGIN_LAT`

```gizlang
const EARTH_WORLD_ORIGIN_LAT: f64 = 38.72
```

### `EARTH_LON_SCALE`

```gizlang
const EARTH_LON_SCALE: f64 = 48.0
```

### `EARTH_LAT_SCALE`

```gizlang
const EARTH_LAT_SCALE: f64 = 48.0
```

