gfx v0.2.0 (2020-11-15T11:15:14Z)
Dub
Repo
scalarApproxRelAndAbs.scalarApproxRelAndAbs
gfx
math
approx
scalarApproxRelAndAbs
Undocumented in source. Be warned that the author may not have intended to support it.
template
scalarApproxRelAndAbs
(T)
pure @
safe
@
nogc
nothrow
bool
scalarApproxRelAndAbs
(
in
T
a
,
in
T
b
,
in
T
maxAbs
= 0.0001
,
in
T
maxEps
= 4 *
T.epsilon
)
if
(
isFloatingPoint
!
T
)
Meta
Source
See Implementation
gfx
math
approx
scalarApproxRelAndAbs
functions
scalarApproxRelAndAbs