Fixed some comments in math.go.
This commit is contained in:
parent
7fd85808a3
commit
1f581dfb43
8
math.go
8
math.go
@ -62,22 +62,22 @@ func Round32(f float32) float32 {
|
|||||||
return float32(math.Round(float64(f)))
|
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 {
|
func Sq(f float64) float64 {
|
||||||
return f * f
|
return f * f
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sq32 the square root of the value
|
// Sq32 returns the squared value of f.
|
||||||
func Sq32(f float32) float32 {
|
func Sq32(f float32) float32 {
|
||||||
return f * f
|
return f * f
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sqrt the square root of the value
|
// Sqrt the square root of the value.
|
||||||
func Sqrt(f float64) float64 {
|
func Sqrt(f float64) float64 {
|
||||||
return math.Sqrt(f)
|
return math.Sqrt(f)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sqrt32 the square root of the value
|
// Sqrt32 the square root of the value.
|
||||||
func Sqrt32(f float32) float32 {
|
func Sqrt32(f float32) float32 {
|
||||||
return float32(Sqrt(float64(f)))
|
return float32(Sqrt(float64(f)))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user