MCPcopy Create free account
hub / github.com/ZDoom/Raze / dist

Function dist

source/core/rendering/hw_sections.cpp:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static double dist(const DVector2& a, const DVector2& b)
94{
95 // We only need to know if it's 1 or higher, so this is enough.
96 return fabs(a.X - b.X) + fabs(a.Y - b.Y);
97}
98
99
100using cmp = bool(*)(double, double);

Callers 6

StripLoopFunction · 0.85
scalePixelFunction · 0.85
blendPixelFunction · 0.85
equalColorTestMethod · 0.85

Calls 1

fabsFunction · 0.85

Tested by

no test coverage detected