gl3n v1.3.1 (2016-01-07T21:01:40Z)
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.