gl3n ~master (2021-06-11T06:55:56Z)
Home
Dub
Repo
sign
gl3n
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
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
Returns 1.0 if x > 0, 0.0 if x = 0, or -1.0 if x < 0.