adam-gui/vendor/fyne.io/fyne/v2/math.go
2024-04-29 19:13:50 +02:00

18 lines
254 B
Go

package fyne
// Min returns the smaller of the passed values.
func Min(x, y float32) float32 {
if x < y {
return x
}
return y
}
// Max returns the larger of the passed values.
func Max(x, y float32) float32 {
if x > y {
return x
}
return y
}