gg/src/gx/math.go

20 lines
250 B
Go
Raw Normal View History

2023-05-27 18:00:27 +03:00
package gx
2023-05-28 19:14:02 +03:00
import (
"math"
)
2023-05-27 18:00:27 +03:00
// The type is used in all Engine interactions
// where you need floating values.
type Float = float64
const (
MaxFloat = math.MaxFloat64
)
// Returns square of the value.
func Sqr(v Float) Float {
return v * v
}