Delete math.go
This commit is contained in:
parent
9cd3590830
commit
dbc012287f
15
math.go
15
math.go
|
@ -1,15 +0,0 @@
|
|||
package pixel
|
||||
|
||||
// Clamp returns x clamped to the interval [min, max].
|
||||
//
|
||||
// If x is less than min, min is returned. If x is more than max, max is returned. Otherwise, x is
|
||||
// returned.
|
||||
func Clamp(x, min, max float64) float64 {
|
||||
if x < min {
|
||||
return min
|
||||
}
|
||||
if x > max {
|
||||
return max
|
||||
}
|
||||
return x
|
||||
}
|
Loading…
Reference in New Issue