MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / Clamp

Method Clamp

SampleFramework11/v1.02/SF11_Math.cpp:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160Float2 Float2::Clamp(const Float2& val, const Float2& min, const Float2& max)
161{
162 Float2 retVal;
163 retVal.x = SampleFramework11::Clamp(val.x, min.x, max.x);
164 retVal.y = SampleFramework11::Clamp(val.y, min.y, max.y);
165 return retVal;
166}
167
168float Float2::Length(const Float2& val)
169{

Callers 1

operator =Method · 0.45

Calls 1

ClampFunction · 0.85

Tested by

no test coverage detected