Table of Contents

Struct ElevationCoverage

Namespace
LansMap.Map.Elevation

Where one base tile's heightmap lives in an IElevationTileSet's height array.

public readonly struct ElevationCoverage
Inherited Members

Constructors

ElevationCoverage(float, Vector2, float, float, float, float)

Builds one coverage record; see each field for its meaning.

public ElevationCoverage(float layer, Vector2 uvMin, float uvSize, float altMercPerMeter, float maxAltMerc = 0, float minAltMerc = 0)

Parameters

layer float

Height-array layer, or -1 for no coverage.

uvMin Vector2

Lower-left of the tile's window in that layer.

uvSize float

Side length of that window.

altMercPerMeter float

Mercator units per metre at this tile's latitude.

maxAltMerc float

Top of the layer's height range, in mercator.

minAltMerc float

Bottom of the layer's height range, in mercator.

Fields

AltMercPerMeter

Normalized mercator per metre of altitude at this tile's own latitude.

public readonly float AltMercPerMeter

Field Value

float

Layer

Height-array layer holding this tile's heightmap, or -1 for none.

public readonly float Layer

Field Value

float

MaxAltMerc

Top of the whole layer's height range, in normalized mercator.

public readonly float MaxAltMerc

Field Value

float

MinAltMerc

Bottom of the whole layer's height range, in normalized mercator.

public readonly float MinAltMerc

Field Value

float

None

The "this tile has no heightmap" sentinel: layer -1, drawn flat.

public static readonly ElevationCoverage None

Field Value

ElevationCoverage

UvMin

Lower-left corner of this tile's window inside that layer.

public readonly Vector2 UvMin

Field Value

Vector2

UvSize

Side length of that window, 1 when the tile owns the whole layer.

public readonly float UvSize

Field Value

float