mathf

package
v0.0.0-...-ece690c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Deg2Rad float64 = math.Pi / 180
View Source
const E = math.E
View Source
const Ln10 = math.Ln10
View Source
const Ln2 = math.Ln2
View Source
const Log10E = math.Log10E
View Source
const Log2E = math.Log2E
View Source
const Phi = math.Phi
View Source
const Pi = math.Pi
View Source
const Pi2 = 2 * math.Pi
View Source
const PiHalf = math.Pi / 2
View Source
const Rad2Deg float64 = 180 / math.Pi
View Source
const Sqrt2 = math.Sqrt2
View Source
const SqrtE = math.SqrtE
View Source
const SqrtPhi = math.SqrtPhi
View Source
const SqrtPi = math.SqrtPi

Variables

View Source
var Abs = math.Abs
View Source
var Acos = math.Acos
View Source
var Acosh = math.Acosh
View Source
var Asin = math.Asin
View Source
var Asinh = math.Asinh
View Source
var Atan = math.Atan
View Source
var Atan2 = math.Atan2
View Source
var Atanh = math.Atanh
View Source
var Cbrt = math.Cbrt
View Source
var Ceil = math.Ceil
View Source
var Copysign = math.Copysign
View Source
var Cos = math.Cos
View Source
var Cosh = math.Cosh
View Source
var Dim = math.Dim
View Source
var Erf = math.Erf
View Source
var Erfc = math.Erfc
View Source
var Erfcinv = math.Erfcinv
View Source
var Erfinv = math.Erfinv
View Source
var Exp = math.Exp
View Source
var Exp2 = math.Exp2
View Source
var Expm1 = math.Expm1
View Source
var FMA = math.FMA
View Source
var Float32bits = math.Float32bits
View Source
var Float32frombits = math.Float32frombits
View Source
var Float64bits = math.Float64bits
View Source
var Float64frombits = math.Float64frombits
View Source
var Floor = math.Floor
View Source
var Frexp = math.Frexp
View Source
var Gamma = math.Gamma
View Source
var Hypot = math.Hypot
View Source
var Ilogb = math.Ilogb
View Source
var Inf = math.Inf
View Source
var IsInf = math.IsInf
View Source
var IsNaN = math.IsNaN
View Source
var J0 = math.J0
View Source
var J1 = math.J1
View Source
var Jn = math.Jn
View Source
var Ldexp = math.Ldexp
View Source
var Lgamma = math.Lgamma
View Source
var Log = math.Log
View Source
var Log10 = math.Log10
View Source
var Log1p = math.Log1p
View Source
var Log2 = math.Log2
View Source
var Logb = math.Logb
View Source
var Max = math.Max
View Source
var Min = math.Min
View Source
var Mod = math.Mod
View Source
var Modf = math.Modf
View Source
var NaN = math.NaN
View Source
var Nextafter = math.Nextafter
View Source
var Nextafter32 = math.Nextafter32
View Source
var Pow = math.Pow
View Source
var Pow10 = math.Pow10
View Source
var Remainder = math.Remainder
View Source
var Round = math.Round
View Source
var RoundToEven = math.RoundToEven
View Source
var Signbit = math.Signbit
View Source
var Sin = math.Sin
View Source
var Sincos = math.Sincos
View Source
var Sinh = math.Sinh
View Source
var Sqrt = math.Sqrt
View Source
var Tan = math.Tan
View Source
var Tanh = math.Tanh
View Source
var Trunc = math.Trunc
View Source
var Y0 = math.Y0
View Source
var Y1 = math.Y1
View Source
var Yn = math.Yn

Functions

func Angle

func Angle(x, y float64) float64

func Clamp

func Clamp(value, min, max float64) float64

func Clamp2

func Clamp2(x, y, minX, minY, maxX, maxY float64) (float64, float64)

func ClampInt

func ClampInt(value, min, max int) int

func Cross

func Cross(x1, y1, x2, y2 float64) float64

func Distance

func Distance(x1, y1, x2, y2 float64) float64

func Dot

func Dot(x1, y1, x2, y2 float64) float64

func Length

func Length(x, y float64) float64

func LengthSqr

func LengthSqr(x, y float64) float64

func Lerp

func Lerp(a, b, t float64) float64

func Lerp2

func Lerp2(x1, y1, x2, y2, t float64) (float64, float64)

func Normalize

func Normalize(x, y float64) (float64, float64)

func Rotate

func Rotate(x, y, angle float64) (float64, float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL