Delete math.go

This commit is contained in:
12private12 2025-08-12 23:21:11 +08:00 committed by GitHub
parent 9cd3590830
commit dbc012287f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 15 deletions

15
math.go
View File

@ -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
}