MCPcopy Create free account
hub / github.com/WallBreaker2/op / normalize_dir

Function normalize_dir

libop/image/ImageSearchAlgorithms.cpp:332–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 return 0;
331}
332static int normalize_dir(int dir) {
333 return dir >= 0 && dir <= 8 ? dir : 0;
334}
335
336static long long center_distance2(const point_t &p, const rect_t &range) {
337 const long long center2x = static_cast<long long>(range.x1) + range.x2 - 1;

Callers 2

point_precedes_in_dirFunction · 0.85
for_each_scan_pointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected