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

Method Clamp

SampleFramework12/v1.00/SF12_Math.cpp:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163Float2 Float2::Clamp(const Float2& val, const Float2& min, const Float2& max)
164{
165 Float2 retVal;
166 retVal.x = SampleFramework12::Clamp(val.x, min.x, max.x);
167 retVal.y = SampleFramework12::Clamp(val.y, min.y, max.y);
168 return retVal;
169}
170
171float Float2::Length(const Float2& val)
172{

Callers 1

operator =Method · 0.45

Calls 1

ClampFunction · 0.85

Tested by

no test coverage detected