pub fn encode_pixel(elevation: f32) -> [u8; 3]Expand description
Encode a single elevation sample (metres) into Mapbox (R, G, B).
Values are clamped to the representable range
[-10000, +1667721.5] metres. NaN encodes as zero metres
(Mapbox Terrain-RGB has no dedicated no-data sentinel).