inmath ~master (2022-05-26T00:17:45.8140456)
Dub
Repo
almostEqual
inmath
math
Compares to values and returns true if the difference is epsilon or smaller.
bool
almostEqual
(T a, S b, float epsilon)
bool
almostEqual
(T a, S b, float epsilon)
@
safe
pure nothrow
bool
almostEqual
(
T
S
)
(
T
a
,
S
b
,
float
epsilon
= 0.000001f
)
if
(
isVector
!
T
&&
isVector
!
S
&&
T.dimension
==
S.dimension
)
bool
almostEqual
(T a, T b, float epsilon)
Meta
Source
See Implementation
inmath
math
aliases
fract
roundEven
functions
abs
almostEqual
cdegrees
clamp
cradians
degrees
fmodf
inversesqrt
mod
radians
sign
smoothstep
step
variables
PI_180
_180_PI
Compares to values and returns true if the difference is epsilon or smaller.