comparison pkg/common/linear.go @ 4850:18d5461bec5d

Fixed some golint issues.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 19 Nov 2019 12:45:52 +0100
parents 07f632cd2625
children
comparison
equal deleted inserted replaced
4848:8584197232ec 4850:18d5461bec5d
8 // – Österreichische Wasserstraßen-Gesellschaft mbH 8 // – Österreichische Wasserstraßen-Gesellschaft mbH
9 // Software engineering by Intevation GmbH 9 // Software engineering by Intevation GmbH
10 // 10 //
11 // Author(s): 11 // Author(s):
12 // * Sascha L. Teichmann <sascha.teichmann@intevation.de> 12 // * Sascha L. Teichmann <sascha.teichmann@intevation.de>
13
13 package common 14 package common
14 15
15 // Linear constructs a function which maps x1 to y1 and x2 to y2. 16 // Linear constructs a function which maps x1 to y1 and x2 to y2.
16 // All other values are interpolated linearly. 17 // All other values are interpolated linearly.
17 func Linear(x1, y1, x2, y2 float64) func(float64) float64 { 18 func Linear(x1, y1, x2, y2 float64) func(float64) float64 {