MCPcopy
hub / github.com/EngoEngine/engo / Sqrt

Function Sqrt

math/sqrt.go:14–16  ·  view source on GitHub ↗

Sqrt returns the square root of x. Special cases are: Sqrt(+Inf) = +Inf Sqrt(±0) = ±0 Sqrt(x < 0) = NaN Sqrt(NaN) = NaN

(x float32)

Source from the content-addressed store, hash-verified

12// Sqrt(x < 0) = NaN
13// Sqrt(NaN) = NaN
14func Sqrt(x float32) float32 {
15 return engomath.Sqrt(x)
16}

Callers 6

PointDistanceMethod · 0.92
NormalizeMethod · 0.92
PointDistanceMethod · 0.92
TestLineNormalFunction · 0.92
ContainsMethod · 0.92
UpdateMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestLineNormalFunction · 0.74