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

Function Frac

SampleFramework12/v1.00/SF12_Math.h:591–595  ·  view source on GitHub ↗

Returns the fractional part of x

Source from the content-addressed store, hash-verified

589
590// Returns the fractional part of x
591inline float Frac(float x)
592{
593 float intPart;
594 return std::modf(x, &intPart);
595}
596
597// Returns the fractional part of x
598inline Float2 Frac(Float2 x)

Callers 1

SampleTexture2DFunction · 0.85

Calls 1

Float2Class · 0.85

Tested by

no test coverage detected