|
@@ -58,5 +58,5 @@ func CalculateMatchScore(constant, variable Constant) float64 {
|
|
//widthScore := math.Abs(float64(constant.Width - variable.Width))
|
|
//widthScore := math.Abs(float64(constant.Width - variable.Width))
|
|
//heightScore := math.Abs(float64(constant.Height - variable.Height))
|
|
//heightScore := math.Abs(float64(constant.Height - variable.Height))
|
|
|
|
|
|
- return math.Abs(variable.Calc() - constant.Calc())
|
|
|
|
|
|
+ return math.Abs(constant.Calc() - variable.Calc())
|
|
}
|
|
}
|