inmath ~master (2022-05-26T00:17:45.8140456)
Dub
Repo
sign
inmath
math
Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0.
@
safe
pure nothrow
float
sign
(
T
)
(
T
x
)
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
Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0.