gfm v3.0.3 (2015-09-02T09:30:55Z)
Home
Dub
Repo
solveLinear
gfm
math
funcs
Find the root of a linear polynomial a + b x = 0
@
nogc
pure nothrow
int
solveLinear
(
T
)
(
T
a
,
T
b
,
out
T
root
)
if
(
isFloatingPoint
!
T
)
Return Value
Type:
int
Number of roots.
Meta
Source
See Implementation
gfm
math
funcs
functions
average
clamp
degrees
fract
ilog2
inverseSqrt
isPowerOf2
lerp
lfloor
ltrunc
maxElement
minElement
moduloWrap
nextPowerOf2
radians
safeAcos
safeAsin
sinOverX
smoothStep
solveCubic
solveLinear
solveQuadratic
solveQuartic
standardDeviation
step
variance
Find the root of a linear polynomial a + b x = 0