gfm ~master (2021-03-12T16:19:32Z)
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