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

Function Mod

math/all.go:345–347  ·  view source on GitHub ↗

Mod returns the floating-point remainder of x/y. The magnitude of the result is less than y and its sign agrees with that of x. Special cases are: Mod(±Inf, y) = NaN Mod(NaN, y) = NaN Mod(x, 0) = NaN Mod(x, ±Inf) = x Mod(x, NaN) = NaN

(x, y float32)

Source from the content-addressed store, hash-verified

343// Mod(x, ±Inf) = x
344// Mod(x, NaN) = NaN
345func Mod(x, y float32) float32 {
346 return engomath.Mod(x, y)
347}
348
349// Modf returns integer and fractional floating-point numbers
350// that sum to f. Both values have the same sign as f.

Callers 2

rotateToMethod · 0.92
UpdateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected