Fixed some comments in math.go.

This commit is contained in:
Sander Schobers 2019-12-21 11:40:50 +01:00
parent 7fd85808a3
commit 1f581dfb43

View File

@ -62,22 +62,22 @@ func Round32(f float32) float32 {
return float32(math.Round(float64(f)))
}
// Sq the square root of the value
// Sq returns the squared value of f.
func Sq(f float64) float64 {
return f * f
}
// Sq32 the square root of the value
// Sq32 returns the squared value of f.
func Sq32(f float32) float32 {
return f * f
}
// Sqrt the square root of the value
// Sqrt the square root of the value.
func Sqrt(f float64) float64 {
return math.Sqrt(f)
}
// Sqrt32 the square root of the value
// Sqrt32 the square root of the value.
func Sqrt32(f float32) float32 {
return float32(Sqrt(float64(f)))
}