gl3n ~master (2021-06-11T06:55:56Z)
Home
Dub
Repo
almost_equal
gl3n
math
Compares to values and returns true if the difference is epsilon or smaller.
bool
almost_equal
(T a, S b, float epsilon)
@
safe
pure nothrow
bool
almost_equal
(
T
S
)
(
T
a
,
S
b
,
float
epsilon
= 0.000001f
)
if
(
!
is_vector
!
T
&&
!
is_quaternion
!
T
)
bool
almost_equal
(T a, S b, float epsilon)
bool
almost_equal
(T a, T b, float epsilon)
Meta
Source
See Implementation
gl3n
math
aliases
fract
roundEven
functions
abs
almost_equal
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.