MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / Sqr

Function Sqr

core/sdf.cpp:38–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace
37{
38 inline float Sqr(float x) { return x*x; }
39 inline int Clamp(int x, int lower, int upper) { return min(max(lower, x), upper); }
40
41 uint32_t Sample(const uint32_t* image, uint32_t w, uint32_t h, int x, int y)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected