MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / negate

Function negate

src/exterior-shell-extractor/utils.py:61–68  ·  view source on GitHub ↗
(sign)

Source from the content-addressed store, hash-verified

59
60
61def negate(sign):
62 def iden(tup):
63 return tup
64
65 def neg(tup):
66 return tuple(-v for v in to_tuple(tup))
67
68 return neg if sign == -1 else iden
69
70
71def to_opaque(tup):

Callers 1

remove_narrowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected