gg/src/gx/math.go

16 lines
230 B
Go
Raw Normal View History

2023-05-27 18:00:27 +03:00
package gx
// 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
}