comparison pkg/mesh/meshserialize_v2.go @ 5708:83d8d11a069d sr-v2

Add missing doc string
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 20 Feb 2024 21:27:47 +0100
parents 148abae1fcd0
children
comparison
equal deleted inserted replaced
5707:d5cafd49bed8 5708:83d8d11a069d
22 "slices" 22 "slices"
23 23
24 "gemma.intevation.de/gemma/pkg/common" 24 "gemma.intevation.de/gemma/pkg/common"
25 ) 25 )
26 26
27 // QuantScale is the after point scale of the quantization of X/Y data.
27 const QuantScale = 1_000 28 const QuantScale = 1_000
28 29
29 func quant(x float64) int64 { return int64(math.Round(x * QuantScale)) } 30 func quant(x float64) int64 { return int64(math.Round(x * QuantScale)) }
30 func unquant(x int64) float64 { return float64(x) / QuantScale } 31 func unquant(x int64) float64 { return float64(x) / QuantScale }
31 32