MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / normalize

Function normalize

src/Core/Utils/MathUtils.cpp:38–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 double normalize(const double value, const double start, const double end)
39 {
40 const double width = end - start;
41 const double offsetValue = value - start;
42
43 return (offsetValue - (floor(offsetValue / width) * width)) + start;
44 }
45} // namespace obe::Utils::Math

Callers 2

rotateMethod · 0.50
MathUtilsTests.cppFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected