MCPcopy Create free account
hub / github.com/CompVis/zigma / sgn

Function sgn

utils/utils_zigzag.py:28–29  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

26
27
28def sgn(x):
29 return -1 if x < 0 else (1 if x > 0 else 0)
30
31
32def in_bounds(x, y, x_s, y_s, ax, ay, bx, by):

Callers 1

gilbert_xy2d_rFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected