MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / sign

Function sign

grid_map_sdf/include/grid_map_sdf/distance_transform/misc.h:39–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38 template <class T>
39 inline int sign(const T &x) { return (x >= 0 ? 1 : -1); };
40
41 template <class T>
42 inline T square(const T &x) { return x*x; };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected