Struct ElevationCoverage
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
layerfloatHeight-array layer, or -1 for no coverage.
uvMinVector2Lower-left of the tile's window in that layer.
uvSizefloatSide length of that window.
altMercPerMeterfloatMercator units per metre at this tile's latitude.
maxAltMercfloatTop of the layer's height range, in mercator.
minAltMercfloatBottom 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
Layer
Height-array layer holding this tile's heightmap, or -1 for none.
public readonly float Layer
Field Value
MaxAltMerc
Top of the whole layer's height range, in normalized mercator.
public readonly float MaxAltMerc
Field Value
MinAltMerc
Bottom of the whole layer's height range, in normalized mercator.
public readonly float MinAltMerc
Field Value
None
The "this tile has no heightmap" sentinel: layer -1, drawn flat.
public static readonly ElevationCoverage None
Field Value
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